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

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

Issue 54493003: Propagate source_frame_number from LTH to DevTools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed android build Created 7 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 | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_view_impl.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 #include <string> 8 #include <string>
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 } 587 }
588 588
589 void RenderWidgetCompositor::setShowScrollBottleneckRects(bool show) { 589 void RenderWidgetCompositor::setShowScrollBottleneckRects(bool show) {
590 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state(); 590 cc::LayerTreeDebugState debug_state = layer_tree_host_->debug_state();
591 debug_state.show_touch_event_handler_rects = show; 591 debug_state.show_touch_event_handler_rects = show;
592 debug_state.show_wheel_event_handler_rects = show; 592 debug_state.show_wheel_event_handler_rects = show;
593 debug_state.show_non_fast_scrollable_rects = show; 593 debug_state.show_non_fast_scrollable_rects = show;
594 layer_tree_host_->SetDebugState(debug_state); 594 layer_tree_host_->SetDebugState(debug_state);
595 } 595 }
596 596
597 void RenderWidgetCompositor::WillBeginMainFrame() { 597 void RenderWidgetCompositor::WillBeginMainFrame(int frame_id) {
598 widget_->InstrumentWillBeginFrame(); 598 widget_->InstrumentWillBeginFrame(frame_id);
599 widget_->willBeginCompositorFrame(); 599 widget_->willBeginCompositorFrame();
600 } 600 }
601 601
602 void RenderWidgetCompositor::DidBeginMainFrame() { 602 void RenderWidgetCompositor::DidBeginMainFrame() {
603 widget_->InstrumentDidBeginFrame(); 603 widget_->InstrumentDidBeginFrame();
604 } 604 }
605 605
606 void RenderWidgetCompositor::Animate(double frame_begin_time) { 606 void RenderWidgetCompositor::Animate(double frame_begin_time) {
607 widget_->webwidget()->animate(frame_begin_time); 607 widget_->webwidget()->animate(frame_begin_time);
608 } 608 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 widget_->OnSwapBuffersAborted(); 663 widget_->OnSwapBuffersAborted();
664 } 664 }
665 665
666 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 666 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
667 cc::ContextProvider* provider = 667 cc::ContextProvider* provider =
668 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 668 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
669 provider->Context3d()->rateLimitOffscreenContextCHROMIUM(); 669 provider->Context3d()->rateLimitOffscreenContextCHROMIUM();
670 } 670 }
671 671
672 } // namespace content 672 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698