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

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

Issue 2810813004: Hide fullscreen rotation jank (Closed)
Patch Set: Show a black frame during fullscreen transitions to hide jank Created 3 years, 7 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <limits> 10 #include <limits>
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 SK_AlphaOPAQUE); 738 SK_AlphaOPAQUE);
739 } 739 }
740 740
741 void RenderWidgetCompositor::SetVisible(bool visible) { 741 void RenderWidgetCompositor::SetVisible(bool visible) {
742 if (never_visible_) 742 if (never_visible_)
743 return; 743 return;
744 744
745 layer_tree_host_->SetVisible(visible); 745 layer_tree_host_->SetVisible(visible);
746 } 746 }
747 747
748 void RenderWidgetCompositor::SetIsFullscreen(bool is_fullscreen) {
749 layer_tree_host_->SetIsFullscreen(is_fullscreen);
750 }
751
748 void RenderWidgetCompositor::SetPageScaleFactorAndLimits( 752 void RenderWidgetCompositor::SetPageScaleFactorAndLimits(
749 float page_scale_factor, 753 float page_scale_factor,
750 float minimum, 754 float minimum,
751 float maximum) { 755 float maximum) {
752 layer_tree_host_->SetPageScaleFactorAndLimits(page_scale_factor, minimum, 756 layer_tree_host_->SetPageScaleFactorAndLimits(page_scale_factor, minimum,
753 maximum); 757 maximum);
754 } 758 }
755 759
756 void RenderWidgetCompositor::StartPageScaleAnimation( 760 void RenderWidgetCompositor::StartPageScaleAnimation(
757 const blink::WebPoint& destination, 761 const blink::WebPoint& destination,
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 const cc::LocalSurfaceId& local_surface_id) { 1217 const cc::LocalSurfaceId& local_surface_id) {
1214 layer_tree_host_->SetLocalSurfaceId(local_surface_id); 1218 layer_tree_host_->SetLocalSurfaceId(local_surface_id);
1215 } 1219 }
1216 1220
1217 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { 1221 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) {
1218 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( 1222 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>(
1219 std::move(callback), base::ThreadTaskRunnerHandle::Get())); 1223 std::move(callback), base::ThreadTaskRunnerHandle::Get()));
1220 } 1224 }
1221 1225
1222 } // namespace content 1226 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698