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" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "cc/base/cc_export.h" | 12 #include "cc/cc_export.h" |
13 #include "cc/layers/layer_impl.h" | 13 #include "cc/layers/layer_impl.h" |
14 #include "cc/quads/surface_draw_quad.h" | 14 #include "cc/quads/surface_draw_quad.h" |
15 #include "cc/surfaces/surface_id.h" | 15 #include "cc/surfaces/surface_id.h" |
16 #include "cc/surfaces/surface_info.h" | 16 #include "cc/surfaces/surface_info.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 | 19 |
20 class CC_EXPORT SurfaceLayerImpl : public LayerImpl { | 20 class CC_EXPORT SurfaceLayerImpl : public LayerImpl { |
21 public: | 21 public: |
22 static std::unique_ptr<SurfaceLayerImpl> Create(LayerTreeImpl* tree_impl, | 22 static std::unique_ptr<SurfaceLayerImpl> Create(LayerTreeImpl* tree_impl, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 SurfaceInfo fallback_surface_info_; | 61 SurfaceInfo fallback_surface_info_; |
62 | 62 |
63 bool stretch_content_to_fill_bounds_ = false; | 63 bool stretch_content_to_fill_bounds_ = false; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl); | 65 DISALLOW_COPY_AND_ASSIGN(SurfaceLayerImpl); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace cc | 68 } // namespace cc |
69 | 69 |
70 #endif // CC_LAYERS_SURFACE_LAYER_IMPL_H_ | 70 #endif // CC_LAYERS_SURFACE_LAYER_IMPL_H_ |
OLD | NEW |