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

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

Issue 20994007: Add impl/comp scrolling instrumentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 (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 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 void RenderWidgetCompositor::Animate(double frame_begin_time) { 527 void RenderWidgetCompositor::Animate(double frame_begin_time) {
528 widget_->webwidget()->animate(frame_begin_time); 528 widget_->webwidget()->animate(frame_begin_time);
529 } 529 }
530 530
531 void RenderWidgetCompositor::Layout() { 531 void RenderWidgetCompositor::Layout() {
532 widget_->webwidget()->layout(); 532 widget_->webwidget()->layout();
533 } 533 }
534 534
535 void RenderWidgetCompositor::ApplyScrollAndScale(gfx::Vector2d scroll_delta, 535 void RenderWidgetCompositor::ApplyScrollAndScale(gfx::Vector2d scroll_delta,
536 float page_scale) { 536 float page_scale) {
537 TRACE_EVENT0("impl-scroll",
538 "RenderWidgetCompositor::ApplyScrollAndScale");
enne (OOO) 2013/07/29 17:46:31 Does the other apply scroll and scale trace not co
537 widget_->webwidget()->applyScrollAndScale(scroll_delta, page_scale); 539 widget_->webwidget()->applyScrollAndScale(scroll_delta, page_scale);
538 } 540 }
539 541
540 scoped_ptr<cc::OutputSurface> RenderWidgetCompositor::CreateOutputSurface() { 542 scoped_ptr<cc::OutputSurface> RenderWidgetCompositor::CreateOutputSurface() {
541 return widget_->CreateOutputSurface(); 543 return widget_->CreateOutputSurface();
542 } 544 }
543 545
544 void RenderWidgetCompositor::DidInitializeOutputSurface(bool success) { 546 void RenderWidgetCompositor::DidInitializeOutputSurface(bool success) {
545 if (!success) 547 if (!success)
546 widget_->webwidget()->didExitCompositingMode(); 548 widget_->webwidget()->didExitCompositingMode();
(...skipping 26 matching lines...) Expand all
573 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); 575 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread();
574 } 576 }
575 577
576 scoped_refptr<cc::ContextProvider> 578 scoped_refptr<cc::ContextProvider>
577 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { 579 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() {
578 return RenderThreadImpl::current()-> 580 return RenderThreadImpl::current()->
579 OffscreenContextProviderForCompositorThread(); 581 OffscreenContextProviderForCompositorThread();
580 } 582 }
581 583
582 } // namespace content 584 } // namespace content
OLDNEW
« cc/trees/thread_proxy.cc ('K') | « content/renderer/gpu/input_handler_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698