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

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

Issue 164183012: Remove --enable-per-tile-painting and --ui-enable-per-tile-painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: enablepertilepainting: rebase Created 6 years, 10 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/browser/renderer_host/render_process_host_impl.cc ('k') | ui/compositor/compositor.cc » ('j') | 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 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 settings.throttle_frame_production = 89 settings.throttle_frame_production =
90 !cmd->HasSwitch(switches::kDisableGpuVsync); 90 !cmd->HasSwitch(switches::kDisableGpuVsync);
91 settings.begin_impl_frame_scheduling_enabled = 91 settings.begin_impl_frame_scheduling_enabled =
92 cmd->HasSwitch(switches::kEnableBeginFrameScheduling); 92 cmd->HasSwitch(switches::kEnableBeginFrameScheduling);
93 settings.deadline_scheduling_enabled = 93 settings.deadline_scheduling_enabled =
94 cmd->HasSwitch(switches::kEnableDeadlineScheduling) && 94 cmd->HasSwitch(switches::kEnableDeadlineScheduling) &&
95 !cmd->HasSwitch(switches::kDisableDeadlineScheduling); 95 !cmd->HasSwitch(switches::kDisableDeadlineScheduling);
96 settings.using_synchronous_renderer_compositor = 96 settings.using_synchronous_renderer_compositor =
97 widget->UsingSynchronousRendererCompositor(); 97 widget->UsingSynchronousRendererCompositor();
98 settings.per_tile_painting_enabled =
99 cmd->HasSwitch(cc::switches::kEnablePerTilePainting);
100 settings.accelerated_animation_enabled = 98 settings.accelerated_animation_enabled =
101 !cmd->HasSwitch(cc::switches::kDisableThreadedAnimation); 99 !cmd->HasSwitch(cc::switches::kDisableThreadedAnimation);
102 settings.touch_hit_testing = 100 settings.touch_hit_testing =
103 !cmd->HasSwitch(cc::switches::kDisableCompositorTouchHitTesting); 101 !cmd->HasSwitch(cc::switches::kDisableCompositorTouchHitTesting);
104 102
105 int default_tile_width = settings.default_tile_size.width(); 103 int default_tile_width = settings.default_tile_size.width();
106 if (cmd->HasSwitch(switches::kDefaultTileWidth)) { 104 if (cmd->HasSwitch(switches::kDefaultTileWidth)) {
107 GetSwitchValueAsInt(*cmd, switches::kDefaultTileWidth, 1, 105 GetSwitchValueAsInt(*cmd, switches::kDefaultTileWidth, 1,
108 std::numeric_limits<int>::max(), &default_tile_width); 106 std::numeric_limits<int>::max(), &default_tile_width);
109 } 107 }
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 widget_->OnSwapBuffersAborted(); 637 widget_->OnSwapBuffersAborted();
640 } 638 }
641 639
642 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 640 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
643 cc::ContextProvider* provider = 641 cc::ContextProvider* provider =
644 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 642 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
645 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM(); 643 provider->ContextGL()->RateLimitOffscreenContextCHROMIUM();
646 } 644 }
647 645
648 } // namespace content 646 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698