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

Side by Side Diff: cc/layer_tree_host.h

Issue 11748031: cc: remove loseOutputSurface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | « no previous file | cc/layer_tree_host.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_LAYER_TREE_HOST_H_ 5 #ifndef CC_LAYER_TREE_HOST_H_
6 #define CC_LAYER_TREE_HOST_H_ 6 #define CC_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // Test only hook 130 // Test only hook
131 virtual void didDeferCommit(); 131 virtual void didDeferCommit();
132 132
133 int commitNumber() const { return m_commitNumber; } 133 int commitNumber() const { return m_commitNumber; }
134 134
135 void renderingStats(RenderingStats*) const; 135 void renderingStats(RenderingStats*) const;
136 136
137 const RendererCapabilities& rendererCapabilities() const; 137 const RendererCapabilities& rendererCapabilities() const;
138 138
139 // Test only hook
140 void loseOutputSurface(int numTimes);
141
142 void setNeedsAnimate(); 139 void setNeedsAnimate();
143 // virtual for testing 140 // virtual for testing
144 virtual void setNeedsCommit(); 141 virtual void setNeedsCommit();
145 virtual void setNeedsFullTreeSync(); 142 virtual void setNeedsFullTreeSync();
146 void setNeedsRedraw(); 143 void setNeedsRedraw();
147 bool commitRequested() const; 144 bool commitRequested() const;
148 145
149 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime); 146 void setAnimationEvents(scoped_ptr<AnimationEventsVector>, base::Time wallCl ockTime);
150 147
151 Layer* rootLayer() { return m_rootLayer.get(); } 148 Layer* rootLayer() { return m_rootLayer.get(); }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 base::CancelableClosure m_prepaintCallback; 233 base::CancelableClosure m_prepaintCallback;
237 234
238 LayerTreeHostClient* m_client; 235 LayerTreeHostClient* m_client;
239 scoped_ptr<Proxy> m_proxy; 236 scoped_ptr<Proxy> m_proxy;
240 237
241 int m_commitNumber; 238 int m_commitNumber;
242 RenderingStats m_renderingStats; 239 RenderingStats m_renderingStats;
243 240
244 bool m_rendererInitialized; 241 bool m_rendererInitialized;
245 bool m_outputSurfaceLost; 242 bool m_outputSurfaceLost;
246 int m_numTimesRecreateShouldFail;
247 int m_numFailedRecreateAttempts; 243 int m_numFailedRecreateAttempts;
248 244
249 scoped_refptr<Layer> m_rootLayer; 245 scoped_refptr<Layer> m_rootLayer;
250 scoped_refptr<HeadsUpDisplayLayer> m_hudLayer; 246 scoped_refptr<HeadsUpDisplayLayer> m_hudLayer;
251 247
252 scoped_ptr<PrioritizedResourceManager> m_contentsTextureManager; 248 scoped_ptr<PrioritizedResourceManager> m_contentsTextureManager;
253 scoped_ptr<PrioritizedResource> m_surfaceMemoryPlaceholder; 249 scoped_ptr<PrioritizedResource> m_surfaceMemoryPlaceholder;
254 250
255 LayerTreeSettings m_settings; 251 LayerTreeSettings m_settings;
256 LayerTreeDebugState m_debugState; 252 LayerTreeDebugState m_debugState;
(...skipping 21 matching lines...) Expand all
278 scoped_ptr<AnimationRegistrar> m_animationRegistrar; 274 scoped_ptr<AnimationRegistrar> m_animationRegistrar;
279 275
280 static bool s_needsFilterContext; 276 static bool s_needsFilterContext;
281 277
282 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 278 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
283 }; 279 };
284 280
285 } // namespace cc 281 } // namespace cc
286 282
287 #endif // CC_LAYER_TREE_HOST_H_ 283 #endif // CC_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698