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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void AppendQuads(RenderPass* render_pass, | 43 void AppendQuads(RenderPass* render_pass, |
44 AppendQuadsData* append_quads_data) override; | 44 AppendQuadsData* append_quads_data) override; |
45 | 45 |
46 protected: | 46 protected: |
47 SurfaceLayerImpl(LayerTreeImpl* tree_impl, int id); | 47 SurfaceLayerImpl(LayerTreeImpl* tree_impl, int id); |
48 | 48 |
49 private: | 49 private: |
50 SurfaceDrawQuad* CreateSurfaceDrawQuad( | 50 SurfaceDrawQuad* CreateSurfaceDrawQuad( |
51 RenderPass* render_pass, | 51 RenderPass* render_pass, |
52 SurfaceDrawQuadType surface_draw_quad_type, | 52 SurfaceDrawQuadType surface_draw_quad_type, |
53 const SurfaceInfo& surface_info); | 53 const SurfaceInfo& surface_info, |
| 54 std::vector<SurfaceId>* embedded_surfaces); |
54 | 55 |
55 void GetDebugBorderProperties(SkColor* color, float* width) const override; | 56 void GetDebugBorderProperties(SkColor* color, float* width) const override; |
56 void AppendRainbowDebugBorder(RenderPass* render_pass); | 57 void AppendRainbowDebugBorder(RenderPass* render_pass); |
57 void AsValueInto(base::trace_event::TracedValue* dict) const override; | 58 void AsValueInto(base::trace_event::TracedValue* dict) const override; |
58 const char* LayerTypeAsString() const override; | 59 const char* LayerTypeAsString() const override; |
59 | 60 |
60 SurfaceInfo primary_surface_info_; | 61 SurfaceInfo primary_surface_info_; |
61 SurfaceInfo fallback_surface_info_; | 62 SurfaceInfo fallback_surface_info_; |
62 | 63 |
63 bool stretch_content_to_fill_bounds_ = false; | 64 bool stretch_content_to_fill_bounds_ = false; |
64 | 65 |
65 DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl); | 66 DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl); |
66 }; | 67 }; |
67 | 68 |
68 } // namespace cc | 69 } // namespace cc |
69 | 70 |
70 #endif // CC_LAYERS_SURFACE_LAYER_IMPL_H_ | 71 #endif // CC_LAYERS_SURFACE_LAYER_IMPL_H_ |
OLD | NEW |