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

Side by Side Diff: cc/layer_tree_host.h

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Defer commits and rebase. Created 8 years, 2 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 CCLayerTreeHost_h 5 #ifndef CCLayerTreeHost_h
6 #define CCLayerTreeHost_h 6 #define CCLayerTreeHost_h
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "CCAnimationEvents.h" 10 #include "CCAnimationEvents.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 void composite(); 135 void composite();
136 void scheduleComposite(); 136 void scheduleComposite();
137 137
138 // Composites and attempts to read back the result into the provided 138 // Composites and attempts to read back the result into the provided
139 // buffer. If it wasn't possible, e.g. due to context lost, will return 139 // buffer. If it wasn't possible, e.g. due to context lost, will return
140 // false. 140 // false.
141 bool compositeAndReadback(void *pixels, const IntRect&); 141 bool compositeAndReadback(void *pixels, const IntRect&);
142 142
143 void finishAllRendering(); 143 void finishAllRendering();
144 144
145 void setDeferCommits(bool deferCommits);
146 bool deferCommits() const { return m_deferCommits; }
147
145 int commitNumber() const { return m_commitNumber; } 148 int commitNumber() const { return m_commitNumber; }
146 149
147 void renderingStats(RenderingStats*) const; 150 void renderingStats(RenderingStats*) const;
148 151
149 const RendererCapabilities& rendererCapabilities() const; 152 const RendererCapabilities& rendererCapabilities() const;
150 153
151 // Test only hook 154 // Test only hook
152 void loseContext(int numTimes); 155 void loseContext(int numTimes);
153 156
154 void setNeedsAnimate(); 157 void setNeedsAnimate();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 270
268 SkColor m_backgroundColor; 271 SkColor m_backgroundColor;
269 bool m_hasTransparentBackground; 272 bool m_hasTransparentBackground;
270 273
271 typedef ScopedPtrVector<PrioritizedTexture> TextureList; 274 typedef ScopedPtrVector<PrioritizedTexture> TextureList;
272 TextureList m_deleteTextureAfterCommitList; 275 TextureList m_deleteTextureAfterCommitList;
273 size_t m_partialTextureUpdateRequests; 276 size_t m_partialTextureUpdateRequests;
274 277
275 static bool s_needsFilterContext; 278 static bool s_needsFilterContext;
276 279
280 bool m_deferCommits;
jamesr 2012/10/23 17:50:44 This bool belongs on ThreadProxy, it's the class t
jonathan.backer 2012/10/23 19:26:42 Done.
281
277 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 282 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
278 }; 283 };
279 284
280 } // namespace cc 285 } // namespace cc
281 286
282 #endif 287 #endif
OLDNEW
« no previous file with comments | « ash/wm/window_animations.cc ('k') | cc/layer_tree_host.cc » ('j') | cc/layer_tree_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698