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

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 10690168: Aura: Resize locks with --ui-enable-threaded-compositing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OSX compile fix. Created 8 years, 1 month 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 | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | no next file » | 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 #include "config.h" 5 #include "config.h"
6 #include "web_layer_tree_view_impl.h" 6 #include "web_layer_tree_view_impl.h"
7 7
8 #include "cc/font_atlas.h" 8 #include "cc/font_atlas.h"
9 #include "cc/input_handler.h" 9 #include "cc/input_handler.h"
10 #include "cc/layer.h" 10 #include "cc/layer.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 bool WebLayerTreeViewImpl::compositeAndReadback(void *pixels, const WebRect& rec t) 158 bool WebLayerTreeViewImpl::compositeAndReadback(void *pixels, const WebRect& rec t)
159 { 159 {
160 return m_layerTreeHost->compositeAndReadback(pixels, convert(rect)); 160 return m_layerTreeHost->compositeAndReadback(pixels, convert(rect));
161 } 161 }
162 162
163 void WebLayerTreeViewImpl::finishAllRendering() 163 void WebLayerTreeViewImpl::finishAllRendering()
164 { 164 {
165 m_layerTreeHost->finishAllRendering(); 165 m_layerTreeHost->finishAllRendering();
166 } 166 }
167 167
168 void WebLayerTreeViewImpl::setDeferCommits(bool deferCommits)
169 {
170 m_layerTreeHost->setDeferCommits(deferCommits);
171 }
172
168 void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const 173 void WebLayerTreeViewImpl::renderingStats(WebRenderingStats& stats) const
169 { 174 {
170 RenderingStats ccStats; 175 RenderingStats ccStats;
171 m_layerTreeHost->renderingStats(&ccStats); 176 m_layerTreeHost->renderingStats(&ccStats);
172 177
173 stats.numAnimationFrames = ccStats.numAnimationFrames; 178 stats.numAnimationFrames = ccStats.numAnimationFrames;
174 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen; 179 stats.numFramesSentToScreen = ccStats.numFramesSentToScreen;
175 stats.droppedFrameCount = ccStats.droppedFrameCount; 180 stats.droppedFrameCount = ccStats.droppedFrameCount;
176 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds; 181 stats.totalPaintTimeInSeconds = ccStats.totalPaintTimeInSeconds;
177 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds; 182 stats.totalRasterizeTimeInSeconds = ccStats.totalRasterizeTimeInSeconds;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 { 263 {
259 m_client->didCompleteSwapBuffers(); 264 m_client->didCompleteSwapBuffers();
260 } 265 }
261 266
262 void WebLayerTreeViewImpl::scheduleComposite() 267 void WebLayerTreeViewImpl::scheduleComposite()
263 { 268 {
264 m_client->scheduleComposite(); 269 m_client->scheduleComposite();
265 } 270 }
266 271
267 } // namespace WebKit 272 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_tree_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698