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

Side by Side Diff: cc/tiled_layer.h

Issue 11472021: cc: Pass LayerTreeHostImpl to LayerImpl constructor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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_unittest.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"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // After preparing an update, returns true if more painting is needed. 58 // After preparing an update, returns true if more painting is needed.
59 bool needsIdlePaint(); 59 bool needsIdlePaint();
60 gfx::Rect idlePaintRect(); 60 gfx::Rect idlePaintRect();
61 61
62 bool skipsDraw() const { return m_skipsDraw; } 62 bool skipsDraw() const { return m_skipsDraw; }
63 63
64 // Virtual for testing 64 // Virtual for testing
65 virtual PrioritizedResourceManager* resourceManager() const; 65 virtual PrioritizedResourceManager* resourceManager() const;
66 66
67 private: 67 private:
68 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; 68 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeHostImpl* hostImpl) O VERRIDE;
69 69
70 void createTilerIfNeeded(); 70 void createTilerIfNeeded();
71 void setTilingOption(TilingOption); 71 void setTilingOption(TilingOption);
72 72
73 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); 73 bool tileOnlyNeedsPartialUpdate(UpdatableTile*);
74 bool tileNeedsBufferedUpdate(UpdatableTile*); 74 bool tileNeedsBufferedUpdate(UpdatableTile*);
75 75
76 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott om, const OcclusionTracker*); 76 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott om, const OcclusionTracker*);
77 77
78 bool updateTiles(int left, int top, int right, int bottom, ResourceUpdateQue ue&, const OcclusionTracker*, RenderingStats&, bool& didPaint); 78 bool updateTiles(int left, int top, int right, int bottom, ResourceUpdateQue ue&, const OcclusionTracker*, RenderingStats&, bool& didPaint);
(...skipping 16 matching lines...) Expand all
95 gfx::Rect m_predictedVisibleRect; 95 gfx::Rect m_predictedVisibleRect;
96 gfx::Rect m_previousVisibleRect; 96 gfx::Rect m_previousVisibleRect;
97 gfx::Size m_previousContentBounds; 97 gfx::Size m_previousContentBounds;
98 98
99 TilingOption m_tilingOption; 99 TilingOption m_tilingOption;
100 scoped_ptr<LayerTilingData> m_tiler; 100 scoped_ptr<LayerTilingData> m_tiler;
101 }; 101 };
102 102
103 } 103 }
104 #endif // CC_TILED_LAYER_H_ 104 #endif // CC_TILED_LAYER_H_
OLDNEW
« no previous file with comments | « cc/texture_layer_unittest.cc ('k') | cc/tiled_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698