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

Side by Side Diff: content/renderer/render_widget.cc

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: rebase Created 4 years, 11 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/render_widget.h ('k') | content/test/web_layer_tree_view_impl_for_testing.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 const gfx::Vector2dF& inner_delta, 993 const gfx::Vector2dF& inner_delta,
994 const gfx::Vector2dF& outer_delta, 994 const gfx::Vector2dF& outer_delta,
995 const gfx::Vector2dF& elastic_overscroll_delta, 995 const gfx::Vector2dF& elastic_overscroll_delta,
996 float page_scale, 996 float page_scale,
997 float top_controls_delta) { 997 float top_controls_delta) {
998 webwidget_->applyViewportDeltas(inner_delta, outer_delta, 998 webwidget_->applyViewportDeltas(inner_delta, outer_delta,
999 elastic_overscroll_delta, page_scale, 999 elastic_overscroll_delta, page_scale,
1000 top_controls_delta); 1000 top_controls_delta);
1001 } 1001 }
1002 1002
1003 void RenderWidget::ApplyMutations(const cc::LayerTreeMutations& mutations) {
1004 TRACE_EVENT0(TRACE_DISABLED_BY_DEFAULT("compositor-worker"),
1005 "RenderWidget::ApplyMutations");
1006 webwidget_->applyCompositorMutations(
1007 static_cast<const blink::WebCompositorMutations&>(mutations));
piman 2016/01/29 01:50:08 This bothers me a little, because I have no way of
1008 }
1009
1003 void RenderWidget::BeginMainFrame(double frame_time_sec) { 1010 void RenderWidget::BeginMainFrame(double frame_time_sec) {
1004 webwidget_->beginFrame(frame_time_sec); 1011 webwidget_->beginFrame(frame_time_sec);
1005 } 1012 }
1006 1013
1007 scoped_ptr<cc::OutputSurface> RenderWidget::CreateOutputSurface(bool fallback) { 1014 scoped_ptr<cc::OutputSurface> RenderWidget::CreateOutputSurface(bool fallback) {
1008 DCHECK(webwidget_); 1015 DCHECK(webwidget_);
1009 // For widgets that are never visible, we don't start the compositor, so we 1016 // For widgets that are never visible, we don't start the compositor, so we
1010 // never get a request for a cc::OutputSurface. 1017 // never get a request for a cc::OutputSurface.
1011 DCHECK(!compositor_never_visible_); 1018 DCHECK(!compositor_never_visible_);
1012 1019
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
2271 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { 2278 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) {
2272 video_hole_frames_.AddObserver(frame); 2279 video_hole_frames_.AddObserver(frame);
2273 } 2280 }
2274 2281
2275 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { 2282 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) {
2276 video_hole_frames_.RemoveObserver(frame); 2283 video_hole_frames_.RemoveObserver(frame);
2277 } 2284 }
2278 #endif // defined(VIDEO_HOLE) 2285 #endif // defined(VIDEO_HOLE)
2279 2286
2280 } // namespace content 2287 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.h ('k') | content/test/web_layer_tree_view_impl_for_testing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698