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

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: 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
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_->renderingStats(stats); 279 layer_tree_host_->renderingStats(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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 503 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
504 } 504 }
505 505
506 scoped_refptr<cc::ContextProvider> 506 scoped_refptr<cc::ContextProvider>
507 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 507 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
508 return RenderThreadImpl::current()-> 508 return RenderThreadImpl::current()->
509 OffscreenContextProviderForCompositorThread(); 509 OffscreenContextProviderForCompositorThread();
510 } 510 }
511 511
512 } // namespace content 512 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698