| 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 730                                                    SK_AlphaOPAQUE); | 730                                                    SK_AlphaOPAQUE); | 
| 731 } | 731 } | 
| 732 | 732 | 
| 733 void RenderWidgetCompositor::SetVisible(bool visible) { | 733 void RenderWidgetCompositor::SetVisible(bool visible) { | 
| 734   if (never_visible_) | 734   if (never_visible_) | 
| 735     return; | 735     return; | 
| 736 | 736 | 
| 737   layer_tree_host_->SetVisible(visible); | 737   layer_tree_host_->SetVisible(visible); | 
| 738 } | 738 } | 
| 739 | 739 | 
|  | 740 void RenderWidgetCompositor::SetIsFullscreen(bool is_fullscreen) { | 
|  | 741   layer_tree_host_->set_is_fullscreen(is_fullscreen); | 
|  | 742 } | 
|  | 743 | 
| 740 void RenderWidgetCompositor::SetPageScaleFactorAndLimits( | 744 void RenderWidgetCompositor::SetPageScaleFactorAndLimits( | 
| 741     float page_scale_factor, | 745     float page_scale_factor, | 
| 742     float minimum, | 746     float minimum, | 
| 743     float maximum) { | 747     float maximum) { | 
| 744   layer_tree_host_->SetPageScaleFactorAndLimits(page_scale_factor, minimum, | 748   layer_tree_host_->SetPageScaleFactorAndLimits(page_scale_factor, minimum, | 
| 745                                                 maximum); | 749                                                 maximum); | 
| 746 } | 750 } | 
| 747 | 751 | 
| 748 void RenderWidgetCompositor::StartPageScaleAnimation( | 752 void RenderWidgetCompositor::StartPageScaleAnimation( | 
| 749     const blink::WebPoint& destination, | 753     const blink::WebPoint& destination, | 
| (...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1244     const cc::LocalSurfaceId& local_surface_id) { | 1248     const cc::LocalSurfaceId& local_surface_id) { | 
| 1245   layer_tree_host_->SetLocalSurfaceId(local_surface_id); | 1249   layer_tree_host_->SetLocalSurfaceId(local_surface_id); | 
| 1246 } | 1250 } | 
| 1247 | 1251 | 
| 1248 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { | 1252 void RenderWidgetCompositor::NotifySwapTime(ReportTimeCallback callback) { | 
| 1249   QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( | 1253   QueueSwapPromise(base::MakeUnique<ReportTimeSwapPromise>( | 
| 1250       std::move(callback), base::ThreadTaskRunnerHandle::Get())); | 1254       std::move(callback), base::ThreadTaskRunnerHandle::Get())); | 
| 1251 } | 1255 } | 
| 1252 | 1256 | 
| 1253 }  // namespace content | 1257 }  // namespace content | 
| OLD | NEW | 
|---|