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

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

Issue 105393003: Always fall back to root scroll layer for otherwise ignored scrolls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 12 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 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 settings.max_partial_texture_updates = 0; 257 settings.max_partial_texture_updates = 0;
258 settings.scrollbar_animator = cc::LayerTreeSettings::LinearFade; 258 settings.scrollbar_animator = cc::LayerTreeSettings::LinearFade;
259 settings.solid_color_scrollbar_color = 259 settings.solid_color_scrollbar_color =
260 cmd->HasSwitch(switches::kHideScrollbars) 260 cmd->HasSwitch(switches::kHideScrollbars)
261 ? SK_ColorTRANSPARENT 261 ? SK_ColorTRANSPARENT
262 : SkColorSetARGB(128, 128, 128, 128); 262 : SkColorSetARGB(128, 128, 128, 128);
263 settings.highp_threshold_min = 2048; 263 settings.highp_threshold_min = 2048;
264 // Android WebView handles root layer flings itself. 264 // Android WebView handles root layer flings itself.
265 settings.ignore_root_layer_flings = 265 settings.ignore_root_layer_flings =
266 widget->UsingSynchronousRendererCompositor(); 266 widget->UsingSynchronousRendererCompositor();
267 settings.always_overscroll = widget->UsingSynchronousRendererCompositor();
268 // RGBA_4444 textures are only enabled for low end devices 267 // RGBA_4444 textures are only enabled for low end devices
269 // and are disabled for Android WebView as it doesn't support the format. 268 // and are disabled for Android WebView as it doesn't support the format.
270 settings.use_rgba_4444_textures = 269 settings.use_rgba_4444_textures =
271 base::android::SysUtils::IsLowEndDevice() && 270 base::android::SysUtils::IsLowEndDevice() &&
272 !widget->UsingSynchronousRendererCompositor() && 271 !widget->UsingSynchronousRendererCompositor() &&
273 !cmd->HasSwitch(cc::switches::kDisable4444Textures); 272 !cmd->HasSwitch(cc::switches::kDisable4444Textures);
274 #elif !defined(OS_MACOSX) 273 #elif !defined(OS_MACOSX)
275 if (cmd->HasSwitch(switches::kEnableOverlayScrollbars)) { 274 if (cmd->HasSwitch(switches::kEnableOverlayScrollbars)) {
276 settings.scrollbar_animator = cc::LayerTreeSettings::Thinning; 275 settings.scrollbar_animator = cc::LayerTreeSettings::Thinning;
277 } 276 }
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 widget_->OnSwapBuffersAborted(); 635 widget_->OnSwapBuffersAborted();
637 } 636 }
638 637
639 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 638 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
640 cc::ContextProvider* provider = 639 cc::ContextProvider* provider =
641 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 640 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
642 provider->Context3d()->rateLimitOffscreenContextCHROMIUM(); 641 provider->Context3d()->rateLimitOffscreenContextCHROMIUM();
643 } 642 }
644 643
645 } // namespace content 644 } // namespace content
OLDNEW
« cc/trees/layer_tree_host_impl.cc ('K') | « cc/trees/layer_tree_settings.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698