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

Side by Side Diff: cc/layers/layer_impl.h

Issue 633773004: cc: Pass Occlusion instead of OcclusionTracker to LayerImpls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 years, 2 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/layers/io_surface_layer_impl.cc ('k') | cc/layers/nine_patch_layer_impl.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void PopulateSharedQuadState(SharedQuadState* state) const; 188 void PopulateSharedQuadState(SharedQuadState* state) const;
189 // WillDraw must be called before AppendQuads. If WillDraw returns false, 189 // WillDraw must be called before AppendQuads. If WillDraw returns false,
190 // AppendQuads and DidDraw will not be called. If WillDraw returns true, 190 // AppendQuads and DidDraw will not be called. If WillDraw returns true,
191 // DidDraw is guaranteed to be called before another WillDraw or before 191 // DidDraw is guaranteed to be called before another WillDraw or before
192 // the layer is destroyed. To enforce this, any class that overrides 192 // the layer is destroyed. To enforce this, any class that overrides
193 // WillDraw/DidDraw must call the base class version only if WillDraw 193 // WillDraw/DidDraw must call the base class version only if WillDraw
194 // returns true. 194 // returns true.
195 virtual bool WillDraw(DrawMode draw_mode, 195 virtual bool WillDraw(DrawMode draw_mode,
196 ResourceProvider* resource_provider); 196 ResourceProvider* resource_provider);
197 virtual void AppendQuads(RenderPass* render_pass, 197 virtual void AppendQuads(RenderPass* render_pass,
198 const OcclusionTracker<LayerImpl>& occlusion_tracker, 198 const Occlusion& occlusion_in_content_space,
199 AppendQuadsData* append_quads_data) {} 199 AppendQuadsData* append_quads_data) {}
200 virtual void DidDraw(ResourceProvider* resource_provider); 200 virtual void DidDraw(ResourceProvider* resource_provider);
201 201
202 virtual ResourceProvider::ResourceId ContentsResourceId() const; 202 virtual ResourceProvider::ResourceId ContentsResourceId() const;
203 203
204 virtual bool HasDelegatedContent() const; 204 virtual bool HasDelegatedContent() const;
205 virtual bool HasContributingDelegatedRenderPasses() const; 205 virtual bool HasContributingDelegatedRenderPasses() const;
206 virtual RenderPassId FirstContributingRenderPassId() const; 206 virtual RenderPassId FirstContributingRenderPassId() const;
207 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; 207 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const;
208 208
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 DrawProperties<LayerImpl> draw_properties_; 704 DrawProperties<LayerImpl> draw_properties_;
705 705
706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
707 707
708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 708 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
709 }; 709 };
710 710
711 } // namespace cc 711 } // namespace cc
712 712
713 #endif // CC_LAYERS_LAYER_IMPL_H_ 713 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/io_surface_layer_impl.cc ('k') | cc/layers/nine_patch_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698