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

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

Issue 838603002: Remove support for custom overscroll background (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (for real) Created 5 years, 11 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
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 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.h ('k') | mojo/services/html_viewer/weblayertreeview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698