| 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 <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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 } | 576 } |
| 577 | 577 |
| 578 void RenderWidgetCompositor::setBackgroundColor(blink::WebColor color) { | 578 void RenderWidgetCompositor::setBackgroundColor(blink::WebColor color) { |
| 579 layer_tree_host_->set_background_color(color); | 579 layer_tree_host_->set_background_color(color); |
| 580 } | 580 } |
| 581 | 581 |
| 582 void RenderWidgetCompositor::setHasTransparentBackground(bool transparent) { | 582 void RenderWidgetCompositor::setHasTransparentBackground(bool transparent) { |
| 583 layer_tree_host_->set_has_transparent_background(transparent); | 583 layer_tree_host_->set_has_transparent_background(transparent); |
| 584 } | 584 } |
| 585 | 585 |
| 586 void RenderWidgetCompositor::setOverhangBitmap(const SkBitmap& bitmap) { | |
| 587 layer_tree_host_->SetOverhangBitmap(bitmap); | |
| 588 } | |
| 589 | |
| 590 void RenderWidgetCompositor::setVisible(bool visible) { | 586 void RenderWidgetCompositor::setVisible(bool visible) { |
| 591 layer_tree_host_->SetVisible(visible); | 587 layer_tree_host_->SetVisible(visible); |
| 592 } | 588 } |
| 593 | 589 |
| 594 void RenderWidgetCompositor::setPageScaleFactorAndLimits( | 590 void RenderWidgetCompositor::setPageScaleFactorAndLimits( |
| 595 float page_scale_factor, float minimum, float maximum) { | 591 float page_scale_factor, float minimum, float maximum) { |
| 596 layer_tree_host_->SetPageScaleFactorAndLimits( | 592 layer_tree_host_->SetPageScaleFactorAndLimits( |
| 597 page_scale_factor, minimum, maximum); | 593 page_scale_factor, minimum, maximum); |
| 598 } | 594 } |
| 599 | 595 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 widget_->OnSwapBuffersAborted(); | 866 widget_->OnSwapBuffersAborted(); |
| 871 } | 867 } |
| 872 | 868 |
| 873 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { | 869 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { |
| 874 cc::ContextProvider* provider = | 870 cc::ContextProvider* provider = |
| 875 compositor_deps_->GetSharedMainThreadContextProvider(); | 871 compositor_deps_->GetSharedMainThreadContextProvider(); |
| 876 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); | 872 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); |
| 877 } | 873 } |
| 878 | 874 |
| 879 } // namespace content | 875 } // namespace content |
| OLD | NEW |