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

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

Issue 12259027: cc: Simplify the logic for deciding to update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sper simple x2 Created 7 years, 8 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/layer_impl.cc » ('j') | cc/trees/layer_tree_host_common.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 <string> 8 #include <string>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 AppendQuadsData* append_quads_data) {} 103 AppendQuadsData* append_quads_data) {}
104 virtual void DidDraw(ResourceProvider* resource_provider); 104 virtual void DidDraw(ResourceProvider* resource_provider);
105 105
106 virtual ResourceProvider::ResourceId ContentsResourceId() const; 106 virtual ResourceProvider::ResourceId ContentsResourceId() const;
107 107
108 virtual bool HasDelegatedContent() const; 108 virtual bool HasDelegatedContent() const;
109 virtual bool HasContributingDelegatedRenderPasses() const; 109 virtual bool HasContributingDelegatedRenderPasses() const;
110 virtual RenderPass::Id FirstContributingRenderPassId() const; 110 virtual RenderPass::Id FirstContributingRenderPassId() const;
111 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const; 111 virtual RenderPass::Id NextContributingRenderPassId(RenderPass::Id id) const;
112 112
113 virtual bool NeedsFirstTimeUpdateTilePriorities() const;
113 virtual void UpdateTilePriorities() {} 114 virtual void UpdateTilePriorities() {}
114 115
115 virtual ScrollbarLayerImpl* ToScrollbarLayer(); 116 virtual ScrollbarLayerImpl* ToScrollbarLayer();
116 117
117 // Returns true if this layer has content to draw. 118 // Returns true if this layer has content to draw.
118 void SetDrawsContent(bool draws_content); 119 void SetDrawsContent(bool draws_content);
119 bool DrawsContent() const { return draws_content_; } 120 bool DrawsContent() const { return draws_content_; }
120 121
121 bool force_render_surface() const { return force_render_surface_; } 122 bool force_render_surface() const { return force_render_surface_; }
122 void SetForceRenderSurface(bool force) { force_render_surface_ = force; } 123 void SetForceRenderSurface(bool force) { force_render_surface_ = force; }
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 // Group of properties that need to be computed based on the layer tree 533 // Group of properties that need to be computed based on the layer tree
533 // hierarchy before layers can be drawn. 534 // hierarchy before layers can be drawn.
534 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_; 535 DrawProperties<LayerImpl, RenderSurfaceImpl> draw_properties_;
535 536
536 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 537 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
537 }; 538 };
538 539
539 } // namespace cc 540 } // namespace cc
540 541
541 #endif // CC_LAYERS_LAYER_IMPL_H_ 542 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.cc » ('j') | cc/trees/layer_tree_host_common.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698