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

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

Issue 23805002: [cc] Enable specifying a overhang/gutter texture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 7 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <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
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
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
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698