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

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

Issue 915083004: cc: Make occlusion a draw property. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: occlusiondrawproperty: earlyoutloop Created 5 years, 10 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/draw_properties.h ('k') | cc/layers/layer_impl.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 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 #include <vector> 10 #include <vector>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 virtual void DidDraw(ResourceProvider* resource_provider); 213 virtual void DidDraw(ResourceProvider* resource_provider);
214 214
215 virtual void GetContentsResourceId(ResourceProvider::ResourceId* resource_id, 215 virtual void GetContentsResourceId(ResourceProvider::ResourceId* resource_id,
216 gfx::Size* resource_size) const; 216 gfx::Size* resource_size) const;
217 217
218 virtual bool HasDelegatedContent() const; 218 virtual bool HasDelegatedContent() const;
219 virtual bool HasContributingDelegatedRenderPasses() const; 219 virtual bool HasContributingDelegatedRenderPasses() const;
220 virtual RenderPassId FirstContributingRenderPassId() const; 220 virtual RenderPassId FirstContributingRenderPassId() const;
221 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; 221 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const;
222 222
223 // Updates the layer's tiles. This should return true if meaningful work was
224 // done. That is, if an early-out was hit and as a result the internal state
225 // of tiles didn't change, this function should return false.
226 virtual bool UpdateTiles(const Occlusion& occlusion_in_layer_space,
227 bool resourceless_software_draw);
228 virtual void NotifyTileStateChanged(const Tile* tile) {} 223 virtual void NotifyTileStateChanged(const Tile* tile) {}
229 224
230 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); 225 virtual ScrollbarLayerImplBase* ToScrollbarLayer();
231 226
232 // Returns true if this layer has content to draw. 227 // Returns true if this layer has content to draw.
233 void SetDrawsContent(bool draws_content); 228 void SetDrawsContent(bool draws_content);
234 bool DrawsContent() const { return draws_content_; } 229 bool DrawsContent() const { return draws_content_; }
235 230
236 int NumDescendantsThatDrawContent() const; 231 int NumDescendantsThatDrawContent() const;
237 void SetHideLayerAndSubtree(bool hide); 232 void SetHideLayerAndSubtree(bool hide);
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 763
769 std::vector<FrameTimingRequest> frame_timing_requests_; 764 std::vector<FrameTimingRequest> frame_timing_requests_;
770 bool frame_timing_requests_dirty_; 765 bool frame_timing_requests_dirty_;
771 766
772 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 767 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
773 }; 768 };
774 769
775 } // namespace cc 770 } // namespace cc
776 771
777 #endif // CC_LAYERS_LAYER_IMPL_H_ 772 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/draw_properties.h ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698