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

Side by Side Diff: cc/tiled_layer.h

Issue 11475054: cc: Add a blocksPendingCommit flag to LayerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: LayerImpl=>Layer, pendingTree=>pendingCommit Created 8 years 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 | « cc/texture_layer.cc ('k') | cc/tiled_layer.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_TILED_LAYER_H_ 5 #ifndef CC_TILED_LAYER_H_
6 #define CC_TILED_LAYER_H_ 6 #define CC_TILED_LAYER_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/cc_export.h"
9 #include "cc/contents_scaling_layer.h" 9 #include "cc/contents_scaling_layer.h"
10 #include "cc/layer_tiling_data.h" 10 #include "cc/layer_tiling_data.h"
11 #include "cc/layer_updater.h" 11 #include "cc/layer_updater.h"
12 12
13 namespace cc { 13 namespace cc {
14 class UpdatableTile; 14 class UpdatableTile;
15 15
16 class CC_EXPORT TiledLayer : public ContentsScalingLayer { 16 class CC_EXPORT TiledLayer : public ContentsScalingLayer {
17 public: 17 public:
18 enum TilingOption { AlwaysTile, NeverTile, AutoTile }; 18 enum TilingOption { AlwaysTile, NeverTile, AutoTile };
19 19
20 virtual void setIsMask(bool) OVERRIDE; 20 virtual void setIsMask(bool) OVERRIDE;
21 21
22 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE; 22 virtual void pushPropertiesTo(LayerImpl*) OVERRIDE;
23 23
24 virtual bool blocksPendingCommit() const OVERRIDE;
25
24 virtual bool drawsContent() const OVERRIDE; 26 virtual bool drawsContent() const OVERRIDE;
25 27
26 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; 28 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE;
27 29
28 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE; 30 virtual void setLayerTreeHost(LayerTreeHost*) OVERRIDE;
29 31
30 virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE; 32 virtual void setTexturePriorities(const PriorityCalculator&) OVERRIDE;
31 33
32 virtual Region visibleContentOpaqueRegion() const OVERRIDE; 34 virtual Region visibleContentOpaqueRegion() const OVERRIDE;
33 35
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 gfx::Rect m_predictedVisibleRect; 97 gfx::Rect m_predictedVisibleRect;
96 gfx::Rect m_previousVisibleRect; 98 gfx::Rect m_previousVisibleRect;
97 gfx::Size m_previousContentBounds; 99 gfx::Size m_previousContentBounds;
98 100
99 TilingOption m_tilingOption; 101 TilingOption m_tilingOption;
100 scoped_ptr<LayerTilingData> m_tiler; 102 scoped_ptr<LayerTilingData> m_tiler;
101 }; 103 };
102 104
103 } 105 }
104 #endif // CC_TILED_LAYER_H_ 106 #endif // CC_TILED_LAYER_H_
OLDNEW
« no previous file with comments | « cc/texture_layer.cc ('k') | cc/tiled_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698