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

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

Issue 287643004: Re-land: cc: Examine layers to determine if we're ready to activate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review feeback Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.h » ('j') | cc/layers/picture_layer_impl.cc » ('J')
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 virtual void DidDraw(ResourceProvider* resource_provider); 181 virtual void DidDraw(ResourceProvider* resource_provider);
182 182
183 virtual ResourceProvider::ResourceId ContentsResourceId() const; 183 virtual ResourceProvider::ResourceId ContentsResourceId() const;
184 184
185 virtual bool HasDelegatedContent() const; 185 virtual bool HasDelegatedContent() const;
186 virtual bool HasContributingDelegatedRenderPasses() const; 186 virtual bool HasContributingDelegatedRenderPasses() const;
187 virtual RenderPass::Id FirstContributingRenderPassId() const; 187 virtual RenderPass::Id FirstContributingRenderPassId() const;
188 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; 188 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const;
189 189
190 virtual void UpdateTilePriorities() {} 190 virtual void UpdateTilePriorities() {}
191 virtual void NotifyTileInitialized(const Tile* tile) {} 191 virtual void NotifyTileStateChanged(const Tile* tile) {}
enne (OOO) 2014/05/16 21:18:32 StateChanged is very vague. What was wrong with I
reveman 2014/05/21 22:11:39 This needs to be called whenever the state of the
192 192
193 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); 193 virtual ScrollbarLayerImplBase* ToScrollbarLayer();
194 194
195 // Returns true if this layer has content to draw. 195 // Returns true if this layer has content to draw.
196 void SetDrawsContent(bool draws_content); 196 void SetDrawsContent(bool draws_content);
197 bool DrawsContent() const { return draws_content_; } 197 bool DrawsContent() const { return draws_content_; }
198 198
199 void SetHideLayerAndSubtree(bool hide); 199 void SetHideLayerAndSubtree(bool hide);
200 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; } 200 bool hide_layer_and_subtree() const { return hide_layer_and_subtree_; }
201 201
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 DrawProperties<LayerImpl> draw_properties_; 693 DrawProperties<LayerImpl> draw_properties_;
694 694
695 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 695 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
696 696
697 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 697 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
698 }; 698 };
699 699
700 } // namespace cc 700 } // namespace cc
701 701
702 #endif // CC_LAYERS_LAYER_IMPL_H_ 702 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.h » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698