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

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

Issue 616543004: cc: Use visible_rect_for_tile_priority_ where approriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Offset 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 | « no previous file | 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 AppendQuadsData* append_quads_data) {} 198 AppendQuadsData* append_quads_data) {}
199 virtual void DidDraw(ResourceProvider* resource_provider); 199 virtual void DidDraw(ResourceProvider* resource_provider);
200 200
201 virtual ResourceProvider::ResourceId ContentsResourceId() const; 201 virtual ResourceProvider::ResourceId ContentsResourceId() const;
202 202
203 virtual bool HasDelegatedContent() const; 203 virtual bool HasDelegatedContent() const;
204 virtual bool HasContributingDelegatedRenderPasses() const; 204 virtual bool HasContributingDelegatedRenderPasses() const;
205 virtual RenderPassId FirstContributingRenderPassId() const; 205 virtual RenderPassId FirstContributingRenderPassId() const;
206 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; 206 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const;
207 207
208 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space) {} 208 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space,
209 bool resourceless_software_draw) {}
209 virtual void NotifyTileStateChanged(const Tile* tile) {} 210 virtual void NotifyTileStateChanged(const Tile* tile) {}
210 211
211 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); 212 virtual ScrollbarLayerImplBase* ToScrollbarLayer();
212 213
213 // Returns true if this layer has content to draw. 214 // Returns true if this layer has content to draw.
214 void SetDrawsContent(bool draws_content); 215 void SetDrawsContent(bool draws_content);
215 bool DrawsContent() const { return draws_content_; } 216 bool DrawsContent() const { return draws_content_; }
216 217
217 int NumDescendantsThatDrawContent() const; 218 int NumDescendantsThatDrawContent() const;
218 void SetHideLayerAndSubtree(bool hide); 219 void SetHideLayerAndSubtree(bool hide);
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 DrawProperties<LayerImpl> draw_properties_; 705 DrawProperties<LayerImpl> draw_properties_;
705 706
706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 707 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
707 708
708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 709 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
709 }; 710 };
710 711
711 } // namespace cc 712 } // namespace cc
712 713
713 #endif // CC_LAYERS_LAYER_IMPL_H_ 714 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_image_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698