|
@@ -310,7 +310,7 @@ public:
|
|
|
private:
|
|
|
// legacy codepath .. to remove after testing
|
|
|
void _canvas_render_item(Item *p_ci, RenderItemState &r_ris);
|
|
|
- _FORCE_INLINE_ void _canvas_item_render_commands(Item *p_item, Item *p_current_clip, bool &r_reclip, RasterizerStorageGLES2::Material *p_material);
|
|
|
+ void _canvas_item_render_commands(Item *p_item, Item *p_current_clip, bool &r_reclip, RasterizerStorageGLES2::Material *p_material);
|
|
|
|
|
|
// high level batch funcs
|
|
|
void canvas_render_items_implementation(Item *p_item_list, int p_z, const Color &p_modulate, Light *p_light, const Transform2D &p_base_transform);
|
|
@@ -326,7 +326,7 @@ private:
|
|
|
|
|
|
// low level batch funcs
|
|
|
void _batch_translate_to_colored();
|
|
|
- _FORCE_INLINE_ int _batch_find_or_create_tex(const RID &p_texture, const RID &p_normal, bool p_tile, int p_previous_match);
|
|
|
+ int _batch_find_or_create_tex(const RID &p_texture, const RID &p_normal, bool p_tile, int p_previous_match);
|
|
|
RasterizerStorageGLES2::Texture *_get_canvas_texture(const RID &p_texture) const;
|
|
|
void _batch_upload_buffers();
|
|
|
void _batch_render_rects(const Batch &p_batch, RasterizerStorageGLES2::Material *p_material);
|
|
@@ -337,7 +337,7 @@ private:
|
|
|
void _software_transform_vertex(BatchVector2 &r_v, const Transform2D &p_tr) const;
|
|
|
void _software_transform_vertex(Vector2 &r_v, const Transform2D &p_tr) const;
|
|
|
TransformMode _find_transform_mode(const Transform2D &p_tr) const;
|
|
|
- _FORCE_INLINE_ void _prefill_default_batch(FillState &r_fill_state, int p_command_num, const Item &p_item);
|
|
|
+ void _prefill_default_batch(FillState &r_fill_state, int p_command_num, const Item &p_item);
|
|
|
|
|
|
// sorting
|
|
|
void sort_items();
|
|
@@ -365,7 +365,7 @@ public:
|
|
|
// Default batches will not occur in software transform only items
|
|
|
// EXCEPT IN THE CASE OF SINGLE RECTS (and this may well not occur, check the logic in prefill_join_item TYPE_RECT)
|
|
|
// but can occur where transform commands have been sent during hardware batch
|
|
|
-_FORCE_INLINE_ void RasterizerCanvasGLES2::_prefill_default_batch(FillState &r_fill_state, int p_command_num, const Item &p_item) {
|
|
|
+inline void RasterizerCanvasGLES2::_prefill_default_batch(FillState &r_fill_state, int p_command_num, const Item &p_item) {
|
|
|
if (r_fill_state.curr_batch->type == Batch::BT_DEFAULT) {
|
|
|
// don't need to flush an extra transform command?
|
|
|
if (!r_fill_state.transform_extra_command_number_p1) {
|
|
@@ -434,17 +434,17 @@ _FORCE_INLINE_ void RasterizerCanvasGLES2::_prefill_default_batch(FillState &r_f
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-_FORCE_INLINE_ void RasterizerCanvasGLES2::_software_transform_vertex(BatchVector2 &r_v, const Transform2D &p_tr) const {
|
|
|
+inline void RasterizerCanvasGLES2::_software_transform_vertex(BatchVector2 &r_v, const Transform2D &p_tr) const {
|
|
|
Vector2 vc(r_v.x, r_v.y);
|
|
|
vc = p_tr.xform(vc);
|
|
|
r_v.set(vc);
|
|
|
}
|
|
|
|
|
|
-_FORCE_INLINE_ void RasterizerCanvasGLES2::_software_transform_vertex(Vector2 &r_v, const Transform2D &p_tr) const {
|
|
|
+inline void RasterizerCanvasGLES2::_software_transform_vertex(Vector2 &r_v, const Transform2D &p_tr) const {
|
|
|
r_v = p_tr.xform(r_v);
|
|
|
}
|
|
|
|
|
|
-_FORCE_INLINE_ RasterizerCanvasGLES2::TransformMode RasterizerCanvasGLES2::_find_transform_mode(const Transform2D &p_tr) const {
|
|
|
+inline RasterizerCanvasGLES2::TransformMode RasterizerCanvasGLES2::_find_transform_mode(const Transform2D &p_tr) const {
|
|
|
// decided whether to do translate only for software transform
|
|
|
if ((p_tr.elements[0].x == 1.0) &&
|
|
|
(p_tr.elements[0].y == 0.0) &&
|
|
@@ -456,7 +456,7 @@ _FORCE_INLINE_ RasterizerCanvasGLES2::TransformMode RasterizerCanvasGLES2::_find
|
|
|
return TM_ALL;
|
|
|
}
|
|
|
|
|
|
-_FORCE_INLINE_ bool RasterizerCanvasGLES2::_sort_items_match(const BSortItem &p_a, const BSortItem &p_b) const {
|
|
|
+inline bool RasterizerCanvasGLES2::_sort_items_match(const BSortItem &p_a, const BSortItem &p_b) const {
|
|
|
const Item *a = p_a.item;
|
|
|
const Item *b = p_b.item;
|
|
|
|