Chromium Code Reviews| Index: cc/layers/layer.h |
| diff --git a/cc/layers/layer.h b/cc/layers/layer.h |
| index 9e94b535052c82b8d351be534233f788a4e62e2c..9b3be5eda3321d3a2ff3d81b444651957b765422 100644 |
| --- a/cc/layers/layer.h |
| +++ b/cc/layers/layer.h |
| @@ -320,8 +320,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| void SetShouldFlattenTransform(bool flatten); |
| bool should_flatten_transform() const { return should_flatten_transform_; } |
| - void SetIs3dSorted(bool sorted); |
| - bool is_3d_sorted() const { return is_3d_sorted_; } |
| + bool Is3dSorted() const { return rendering_context_id_ != 0; } |
| void set_use_parent_backface_visibility(bool use) { |
| use_parent_backface_visibility_ = use; |
| @@ -458,6 +457,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| virtual void RunMicroBenchmark(MicroBenchmark* benchmark); |
| + void SetRenderingContextId(int id); |
| + int rendering_context_id() { return rendering_context_id_; } |
| + |
| protected: |
| friend class LayerImpl; |
| friend class TreeSynchronizer; |
| @@ -530,6 +532,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| // will be handled implicitly after the update completes. |
| bool ignore_set_needs_commit_; |
| + // The rendering context ID we get from Blink, plumbed through WebLayerImpl |
|
danakj
2014/06/15 18:15:35
Can you say what its for rather than where it came
troyhildebrandt
2014/06/17 00:29:43
Done.
|
| + int rendering_context_id_; |
| + |
| private: |
| friend class base::RefCounted<Layer>; |
| @@ -588,7 +593,6 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>, |
| bool use_parent_backface_visibility_ : 1; |
| bool draw_checkerboard_for_missing_tiles_ : 1; |
| bool force_render_surface_ : 1; |
| - bool is_3d_sorted_ : 1; |
| bool transform_is_invertible_ : 1; |
| Region non_fast_scrollable_region_; |
| Region touch_event_handler_region_; |