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

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

Issue 23530003: cc: Block commit on activate by setting a flag on LayerTreeHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: blockcommit: move bool to proxy Created 7 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 | Annotate | Revision Log
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_TILED_LAYER_H_ 5 #ifndef CC_LAYERS_TILED_LAYER_H_
6 #define CC_LAYERS_TILED_LAYER_H_ 6 #define CC_LAYERS_TILED_LAYER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/layers/contents_scaling_layer.h" 9 #include "cc/layers/contents_scaling_layer.h"
10 #include "cc/resources/layer_tiling_data.h" 10 #include "cc/resources/layer_tiling_data.h"
11 11
12 namespace cc { 12 namespace cc {
13 class LayerUpdater; 13 class LayerUpdater;
14 class PrioritizedResourceManager; 14 class PrioritizedResourceManager;
15 class PrioritizedResource; 15 class PrioritizedResource;
16 class UpdatableTile; 16 class UpdatableTile;
17 17
18 class CC_EXPORT TiledLayer : public ContentsScalingLayer { 18 class CC_EXPORT TiledLayer : public ContentsScalingLayer {
19 public: 19 public:
20 enum TilingOption { 20 enum TilingOption {
21 ALWAYS_TILE, 21 ALWAYS_TILE,
22 NEVER_TILE, 22 NEVER_TILE,
23 AUTO_TILE, 23 AUTO_TILE,
24 }; 24 };
25 25
26 // Layer implementation. 26 // Layer implementation.
27 virtual void SetIsMask(bool is_mask) OVERRIDE; 27 virtual void SetIsMask(bool is_mask) OVERRIDE;
28 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; 28 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE;
29 virtual bool BlocksPendingCommit() const OVERRIDE;
30 virtual bool DrawsContent() const OVERRIDE; 29 virtual bool DrawsContent() const OVERRIDE;
31 virtual void ReduceMemoryUsage() OVERRIDE; 30 virtual void ReduceMemoryUsage() OVERRIDE;
32 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; 31 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE;
33 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; 32 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE;
34 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc) 33 virtual void SetTexturePriorities(const PriorityCalculator& priority_calc)
35 OVERRIDE; 34 OVERRIDE;
36 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; 35 virtual Region VisibleContentOpaqueRegion() const OVERRIDE;
37 virtual bool Update(ResourceUpdateQueue* queue, 36 virtual bool Update(ResourceUpdateQueue* queue,
38 const OcclusionTracker* occlusion) OVERRIDE; 37 const OcclusionTracker* occlusion) OVERRIDE;
39 38
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 132
134 TilingOption tiling_option_; 133 TilingOption tiling_option_;
135 scoped_ptr<LayerTilingData> tiler_; 134 scoped_ptr<LayerTilingData> tiler_;
136 135
137 DISALLOW_COPY_AND_ASSIGN(TiledLayer); 136 DISALLOW_COPY_AND_ASSIGN(TiledLayer);
138 }; 137 };
139 138
140 } // namespace cc 139 } // namespace cc
141 140
142 #endif // CC_LAYERS_TILED_LAYER_H_ 141 #endif // CC_LAYERS_TILED_LAYER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698