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

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

Issue 551463005: Revert of cc: Add occlusion checker as a fixed view of occlusion tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/cc.gyp ('k') | cc/layers/picture_image_layer_impl_unittest.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 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 } 42 }
43 43
44 class DictionaryValue; 44 class DictionaryValue;
45 } 45 }
46 46
47 namespace cc { 47 namespace cc {
48 48
49 class LayerTreeHostImpl; 49 class LayerTreeHostImpl;
50 class LayerTreeImpl; 50 class LayerTreeImpl;
51 class MicroBenchmarkImpl; 51 class MicroBenchmarkImpl;
52 class Occlusion;
53 template <typename LayerType> 52 template <typename LayerType>
54 class OcclusionTracker; 53 class OcclusionTracker;
55 class RenderPass; 54 class RenderPass;
56 class RenderPassId; 55 class RenderPassId;
57 class Renderer; 56 class Renderer;
58 class ScrollbarAnimationController; 57 class ScrollbarAnimationController;
59 class ScrollbarLayerImplBase; 58 class ScrollbarLayerImplBase;
60 class SimpleEnclosedRegion; 59 class SimpleEnclosedRegion;
61 class Tile; 60 class Tile;
62 61
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 AppendQuadsData* append_quads_data) {} 197 AppendQuadsData* append_quads_data) {}
199 virtual void DidDraw(ResourceProvider* resource_provider); 198 virtual void DidDraw(ResourceProvider* resource_provider);
200 199
201 virtual ResourceProvider::ResourceId ContentsResourceId() const; 200 virtual ResourceProvider::ResourceId ContentsResourceId() const;
202 201
203 virtual bool HasDelegatedContent() const; 202 virtual bool HasDelegatedContent() const;
204 virtual bool HasContributingDelegatedRenderPasses() const; 203 virtual bool HasContributingDelegatedRenderPasses() const;
205 virtual RenderPassId FirstContributingRenderPassId() const; 204 virtual RenderPassId FirstContributingRenderPassId() const;
206 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; 205 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const;
207 206
208 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space) {} 207 virtual void UpdateTiles(
208 const OcclusionTracker<LayerImpl>* occlusion_tracker) {}
209 virtual void NotifyTileStateChanged(const Tile* tile) {} 209 virtual void NotifyTileStateChanged(const Tile* tile) {}
210 210
211 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); 211 virtual ScrollbarLayerImplBase* ToScrollbarLayer();
212 212
213 // Returns true if this layer has content to draw. 213 // Returns true if this layer has content to draw.
214 void SetDrawsContent(bool draws_content); 214 void SetDrawsContent(bool draws_content);
215 bool DrawsContent() const { return draws_content_; } 215 bool DrawsContent() const { return draws_content_; }
216 216
217 int NumDescendantsThatDrawContent() const; 217 int NumDescendantsThatDrawContent() const;
218 void SetHideLayerAndSubtree(bool hide); 218 void SetHideLayerAndSubtree(bool hide);
(...skipping 485 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/cc.gyp ('k') | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698