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

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

Issue 622823002: Make root layer DCHECK in RWC::layout less general (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « no previous file | 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 (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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 double deadline_sec = (args.deadline - base::TimeTicks()).InSecondsF(); 779 double deadline_sec = (args.deadline - base::TimeTicks()).InSecondsF();
780 double interval_sec = args.interval.InSecondsF(); 780 double interval_sec = args.interval.InSecondsF();
781 WebBeginFrameArgs web_begin_frame_args = 781 WebBeginFrameArgs web_begin_frame_args =
782 WebBeginFrameArgs(frame_time_sec, deadline_sec, interval_sec); 782 WebBeginFrameArgs(frame_time_sec, deadline_sec, interval_sec);
783 widget_->webwidget()->beginFrame(web_begin_frame_args); 783 widget_->webwidget()->beginFrame(web_begin_frame_args);
784 } 784 }
785 785
786 void RenderWidgetCompositor::Layout() { 786 void RenderWidgetCompositor::Layout() {
787 widget_->webwidget()->layout(); 787 widget_->webwidget()->layout();
788 788
789 DCHECK(layer_tree_host_->root_layer());
790 if (temporary_copy_output_request_) { 789 if (temporary_copy_output_request_) {
790 DCHECK(layer_tree_host_->root_layer());
791 layer_tree_host_->root_layer()->RequestCopyOfOutput( 791 layer_tree_host_->root_layer()->RequestCopyOfOutput(
792 temporary_copy_output_request_.Pass()); 792 temporary_copy_output_request_.Pass());
793 } 793 }
794 } 794 }
795 795
796 void RenderWidgetCompositor::ApplyViewportDeltas( 796 void RenderWidgetCompositor::ApplyViewportDeltas(
797 const gfx::Vector2d& inner_delta, 797 const gfx::Vector2d& inner_delta,
798 const gfx::Vector2d& outer_delta, 798 const gfx::Vector2d& outer_delta,
799 float page_scale, 799 float page_scale,
800 float top_controls_delta) { 800 float top_controls_delta) {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 widget_->OnSwapBuffersAborted(); 868 widget_->OnSwapBuffersAborted();
869 } 869 }
870 870
871 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 871 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
872 cc::ContextProvider* provider = 872 cc::ContextProvider* provider =
873 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 873 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
874 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 874 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
875 } 875 }
876 876
877 } // namespace content 877 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698