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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 } | 429 } |
430 | 430 |
431 void RenderWidgetCompositor::setBackgroundColor(WebKit::WebColor color) { | 431 void RenderWidgetCompositor::setBackgroundColor(WebKit::WebColor color) { |
432 layer_tree_host_->set_background_color(color); | 432 layer_tree_host_->set_background_color(color); |
433 } | 433 } |
434 | 434 |
435 void RenderWidgetCompositor::setHasTransparentBackground(bool transparent) { | 435 void RenderWidgetCompositor::setHasTransparentBackground(bool transparent) { |
436 layer_tree_host_->set_has_transparent_background(transparent); | 436 layer_tree_host_->set_has_transparent_background(transparent); |
437 } | 437 } |
438 | 438 |
| 439 void RenderWidgetCompositor::setOverhangBitmap(const SkBitmap& bitmap) { |
| 440 layer_tree_host_->SetOverhangBitmap(bitmap); |
| 441 } |
| 442 |
439 void RenderWidgetCompositor::setVisible(bool visible) { | 443 void RenderWidgetCompositor::setVisible(bool visible) { |
440 layer_tree_host_->SetVisible(visible); | 444 layer_tree_host_->SetVisible(visible); |
441 } | 445 } |
442 | 446 |
443 void RenderWidgetCompositor::setPageScaleFactorAndLimits( | 447 void RenderWidgetCompositor::setPageScaleFactorAndLimits( |
444 float page_scale_factor, float minimum, float maximum) { | 448 float page_scale_factor, float minimum, float maximum) { |
445 layer_tree_host_->SetPageScaleFactorAndLimits( | 449 layer_tree_host_->SetPageScaleFactorAndLimits( |
446 page_scale_factor, minimum, maximum); | 450 page_scale_factor, minimum, maximum); |
447 } | 451 } |
448 | 452 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); | 594 return RenderThreadImpl::current()->OffscreenContextProviderForMainThread(); |
591 } | 595 } |
592 | 596 |
593 scoped_refptr<cc::ContextProvider> | 597 scoped_refptr<cc::ContextProvider> |
594 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { | 598 RenderWidgetCompositor::OffscreenContextProviderForCompositorThread() { |
595 return RenderThreadImpl::current()-> | 599 return RenderThreadImpl::current()-> |
596 OffscreenContextProviderForCompositorThread(); | 600 OffscreenContextProviderForCompositorThread(); |
597 } | 601 } |
598 | 602 |
599 } // namespace content | 603 } // namespace content |
OLD | NEW |