Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(565)

Side by Side Diff: cc/test/layer_test_common.h

Issue 1968363002: SurfaceAggregator should check whether output is secure when drawin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « cc/test/fake_proxy.h ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698