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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 12804006: cc: Save correct frame begin time to FrameRateCounter (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to 188402 Created 7 years, 9 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
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_widget.h » ('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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "content/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 else 264 else
265 TRACE_EVENT_ASYNC_END0("gpu", 265 TRACE_EVENT_ASYNC_END0("gpu",
266 "RenderWidgetCompositor::SetSuppressScheduleComposite", this); 266 "RenderWidgetCompositor::SetSuppressScheduleComposite", this);
267 suppress_schedule_composite_ = suppress; 267 suppress_schedule_composite_ = suppress;
268 } 268 }
269 269
270 void RenderWidgetCompositor::Animate(base::TimeTicks time) { 270 void RenderWidgetCompositor::Animate(base::TimeTicks time) {
271 layer_tree_host_->UpdateAnimations(time); 271 layer_tree_host_->UpdateAnimations(time);
272 } 272 }
273 273
274 void RenderWidgetCompositor::Composite() { 274 void RenderWidgetCompositor::Composite(base::TimeTicks frame_begin_time) {
275 layer_tree_host_->Composite(); 275 layer_tree_host_->Composite(frame_begin_time);
276 } 276 }
277 277
278 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) { 278 void RenderWidgetCompositor::GetRenderingStats(cc::RenderingStats* stats) {
279 layer_tree_host_->CollectRenderingStats(stats); 279 layer_tree_host_->CollectRenderingStats(stats);
280 } 280 }
281 281
282 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() { 282 skia::RefPtr<SkPicture> RenderWidgetCompositor::CapturePicture() {
283 return layer_tree_host_->CapturePicture(); 283 return layer_tree_host_->CapturePicture();
284 } 284 }
285 285
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 504 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
505 } 505 }
506 506
507 scoped_refptr<cc::ContextProvider> 507 scoped_refptr<cc::ContextProvider>
508 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 508 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
509 return RenderThreadImpl::current()-> 509 return RenderThreadImpl::current()->
510 OffscreenContextProviderForCompositorThread(); 510 OffscreenContextProviderForCompositorThread();
511 } 511 }
512 512
513 } // namespace content 513 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698