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

Side by Side Diff: cc/tiled_layer.h

Issue 11662003: cc: Put context-loss tests in layer_tree_host_unittest_context.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 80cols Created 7 years, 11 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 | « cc/test/render_pass_test_common.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 void resetUpdateState(); 58 void resetUpdateState();
59 59
60 // After preparing an update, returns true if more painting is needed. 60 // After preparing an update, returns true if more painting is needed.
61 bool needsIdlePaint(); 61 bool needsIdlePaint();
62 gfx::Rect idlePaintRect(); 62 gfx::Rect idlePaintRect();
63 63
64 bool skipsDraw() const { return m_skipsDraw; } 64 bool skipsDraw() const { return m_skipsDraw; }
65 65
66 // Virtual for testing 66 // Virtual for testing
67 virtual PrioritizedResourceManager* resourceManager() const; 67 virtual PrioritizedResourceManager* resourceManager() const;
68 const LayerTilingData* tilerForTesting() const { return m_tiler.get(); }
69 const PrioritizedResource* resourceAtForTesting(int, int) const;
68 70
69 private: 71 private:
70 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERR IDE; 72 virtual scoped_ptr<LayerImpl> createLayerImpl(LayerTreeImpl* treeImpl) OVERR IDE;
71 73
72 void createTilerIfNeeded(); 74 void createTilerIfNeeded();
73 void setTilingOption(TilingOption); 75 void setTilingOption(TilingOption);
74 76
75 bool tileOnlyNeedsPartialUpdate(UpdatableTile*); 77 bool tileOnlyNeedsPartialUpdate(UpdatableTile*);
76 bool tileNeedsBufferedUpdate(UpdatableTile*); 78 bool tileNeedsBufferedUpdate(UpdatableTile*);
77 79
(...skipping 19 matching lines...) Expand all
97 gfx::Rect m_predictedVisibleRect; 99 gfx::Rect m_predictedVisibleRect;
98 gfx::Rect m_previousVisibleRect; 100 gfx::Rect m_previousVisibleRect;
99 gfx::Size m_previousContentBounds; 101 gfx::Size m_previousContentBounds;
100 102
101 TilingOption m_tilingOption; 103 TilingOption m_tilingOption;
102 scoped_ptr<LayerTilingData> m_tiler; 104 scoped_ptr<LayerTilingData> m_tiler;
103 }; 105 };
104 106
105 } 107 }
106 #endif // CC_TILED_LAYER_H_ 108 #endif // CC_TILED_LAYER_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_common.cc ('k') | cc/tiled_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698