OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_TEST_LAYER_TEST_COMMON_H_ | 5 #ifndef CC_TEST_LAYER_TEST_COMMON_H_ |
6 #define CC_TEST_LAYER_TEST_COMMON_H_ | 6 #define CC_TEST_LAYER_TEST_COMMON_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 void AppendQuadsWithOcclusion(LayerImpl* layer_impl, | 132 void AppendQuadsWithOcclusion(LayerImpl* layer_impl, |
133 const gfx::Rect& occluded); | 133 const gfx::Rect& occluded); |
134 void AppendQuadsForPassWithOcclusion(LayerImpl* layer_impl, | 134 void AppendQuadsForPassWithOcclusion(LayerImpl* layer_impl, |
135 RenderPass* given_render_pass, | 135 RenderPass* given_render_pass, |
136 const gfx::Rect& occluded); | 136 const gfx::Rect& occluded); |
137 void AppendSurfaceQuadsWithOcclusion(RenderSurfaceImpl* surface_impl, | 137 void AppendSurfaceQuadsWithOcclusion(RenderSurfaceImpl* surface_impl, |
138 const gfx::Rect& occluded); | 138 const gfx::Rect& occluded); |
139 | 139 |
140 void RequestCopyOfOutput(); | 140 void RequestCopyOfOutput(); |
141 | 141 |
142 void SetOutputIsSecure(bool output_is_secure) { | |
143 host_->host_impl()->set_output_is_secure(output_is_secure); | |
144 } | |
145 | |
146 OutputSurface* output_surface() const { | 142 OutputSurface* output_surface() const { |
147 return host_->host_impl()->output_surface(); | 143 return host_->host_impl()->output_surface(); |
148 } | 144 } |
149 ResourceProvider* resource_provider() const { | 145 ResourceProvider* resource_provider() const { |
150 return host_->host_impl()->resource_provider(); | 146 return host_->host_impl()->resource_provider(); |
151 } | 147 } |
152 LayerImpl* root_layer() const { | 148 LayerImpl* root_layer() const { |
153 return host_impl()->active_tree()->root_layer(); | 149 return host_impl()->active_tree()->root_layer(); |
154 } | 150 } |
155 FakeLayerTreeHost* host() { return host_.get(); } | 151 FakeLayerTreeHost* host() { return host_.get(); } |
(...skipping 13 matching lines...) Expand all Loading... |
169 std::unique_ptr<RenderPass> render_pass_; | 165 std::unique_ptr<RenderPass> render_pass_; |
170 scoped_refptr<AnimationTimeline> timeline_; | 166 scoped_refptr<AnimationTimeline> timeline_; |
171 scoped_refptr<AnimationTimeline> timeline_impl_; | 167 scoped_refptr<AnimationTimeline> timeline_impl_; |
172 int layer_impl_id_; | 168 int layer_impl_id_; |
173 }; | 169 }; |
174 }; | 170 }; |
175 | 171 |
176 } // namespace cc | 172 } // namespace cc |
177 | 173 |
178 #endif // CC_TEST_LAYER_TEST_COMMON_H_ | 174 #endif // CC_TEST_LAYER_TEST_COMMON_H_ |
OLD | NEW |