OLD | NEW |
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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 SK_AlphaOPAQUE); | 734 SK_AlphaOPAQUE); |
735 } | 735 } |
736 | 736 |
737 void RenderWidgetCompositor::SetVisible(bool visible) { | 737 void RenderWidgetCompositor::SetVisible(bool visible) { |
738 if (never_visible_) | 738 if (never_visible_) |
739 return; | 739 return; |
740 | 740 |
741 layer_tree_host_->SetVisible(visible); | 741 layer_tree_host_->SetVisible(visible); |
742 } | 742 } |
743 | 743 |
| 744 void RenderWidgetCompositor::SetIsFullscreen(bool is_fullscreen) { |
| 745 layer_tree_host_->set_is_fullscreen(is_fullscreen); |
| 746 } |
| 747 |
744 void RenderWidgetCompositor::SetPageScaleFactorAndLimits( | 748 void RenderWidgetCompositor::SetPageScaleFactorAndLimits( |
745 float page_scale_factor, | 749 float page_scale_factor, |
746 float minimum, | 750 float minimum, |
747 float maximum) { | 751 float maximum) { |
748 layer_tree_host_->SetPageScaleFactorAndLimits(page_scale_factor, minimum, | 752 layer_tree_host_->SetPageScaleFactorAndLimits(page_scale_factor, minimum, |
749 maximum); | 753 maximum); |
750 } | 754 } |
751 | 755 |
752 void RenderWidgetCompositor::StartPageScaleAnimation( | 756 void RenderWidgetCompositor::StartPageScaleAnimation( |
753 const blink::WebPoint& destination, | 757 const blink::WebPoint& destination, |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1231 const cc::LocalSurfaceId& local_surface_id) { | 1235 const cc::LocalSurfaceId& local_surface_id) { |
1232 layer_tree_host_->SetLocalSurfaceId(local_surface_id); | 1236 layer_tree_host_->SetLocalSurfaceId(local_surface_id); |
1233 } | 1237 } |
1234 | 1238 |
1235 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { | 1239 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { |
1236 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( | 1240 QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( |
1237 std::move(callback), base::ThreadTaskRunnerHandle::Get())); | 1241 std::move(callback), base::ThreadTaskRunnerHandle::Get())); |
1238 } | 1242 } |
1239 | 1243 |
1240 } // namespace content | 1244 } // namespace content |
OLD | NEW |