OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_LAYERS_SURFACE_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_SURFACE_LAYER_IMPL_H_ |
6 #define CC_LAYERS_SURFACE_LAYER_IMPL_H_ | 6 #define CC_LAYERS_SURFACE_LAYER_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
10 #include "cc/layers/layer_impl.h" | 10 #include "cc/layers/layer_impl.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 void PushPropertiesTo(LayerImpl* layer) override; | 26 void PushPropertiesTo(LayerImpl* layer) override; |
27 void AppendQuads(RenderPass* render_pass, | 27 void AppendQuads(RenderPass* render_pass, |
28 const Occlusion& occlusion_in_content_space, | 28 const Occlusion& occlusion_in_content_space, |
29 AppendQuadsData* append_quads_data) override; | 29 AppendQuadsData* append_quads_data) override; |
30 | 30 |
31 protected: | 31 protected: |
32 SurfaceLayerImpl(LayerTreeImpl* tree_impl, int id); | 32 SurfaceLayerImpl(LayerTreeImpl* tree_impl, int id); |
33 | 33 |
34 private: | 34 private: |
35 void GetDebugBorderProperties(SkColor* color, float* width) const override; | 35 void GetDebugBorderProperties(SkColor* color, float* width) const override; |
36 void AsValueInto(base::debug::TracedValue* dict) const override; | 36 void AsValueInto(base::trace_event::TracedValue* dict) const override; |
37 const char* LayerTypeAsString() const override; | 37 const char* LayerTypeAsString() const override; |
38 | 38 |
39 SurfaceId surface_id_; | 39 SurfaceId surface_id_; |
40 | 40 |
41 DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl); | 41 DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl); |
42 }; | 42 }; |
43 | 43 |
44 } // namespace cc | 44 } // namespace cc |
45 | 45 |
46 #endif // CC_LAYERS_SURFACE_LAYER_IMPL_H_ | 46 #endif // CC_LAYERS_SURFACE_LAYER_IMPL_H_ |
OLD | NEW |