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

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

Issue 92853002: Support for drawing a debug border around animated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copy switches for chromeos Created 7 years 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
« 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 settings.use_pinch_virtual_viewport = 178 settings.use_pinch_virtual_viewport =
179 cmd->HasSwitch(cc::switches::kEnablePinchVirtualViewport); 179 cmd->HasSwitch(cc::switches::kEnablePinchVirtualViewport);
180 settings.allow_antialiasing &= 180 settings.allow_antialiasing &=
181 !cmd->HasSwitch(cc::switches::kDisableCompositedAntialiasing); 181 !cmd->HasSwitch(cc::switches::kDisableCompositedAntialiasing);
182 182
183 // These flags should be mirrored by UI versions in ui/compositor/. 183 // These flags should be mirrored by UI versions in ui/compositor/.
184 settings.initial_debug_state.show_debug_borders = 184 settings.initial_debug_state.show_debug_borders =
185 cmd->HasSwitch(cc::switches::kShowCompositedLayerBorders); 185 cmd->HasSwitch(cc::switches::kShowCompositedLayerBorders);
186 settings.initial_debug_state.show_fps_counter = 186 settings.initial_debug_state.show_fps_counter =
187 cmd->HasSwitch(cc::switches::kShowFPSCounter); 187 cmd->HasSwitch(cc::switches::kShowFPSCounter);
188 settings.initial_debug_state.show_layer_animation_bounds_rects =
189 cmd->HasSwitch(cc::switches::kShowLayerAnimationBounds);
188 settings.initial_debug_state.show_paint_rects = 190 settings.initial_debug_state.show_paint_rects =
189 cmd->HasSwitch(switches::kShowPaintRects); 191 cmd->HasSwitch(switches::kShowPaintRects);
190 settings.initial_debug_state.show_property_changed_rects = 192 settings.initial_debug_state.show_property_changed_rects =
191 cmd->HasSwitch(cc::switches::kShowPropertyChangedRects); 193 cmd->HasSwitch(cc::switches::kShowPropertyChangedRects);
192 settings.initial_debug_state.show_surface_damage_rects = 194 settings.initial_debug_state.show_surface_damage_rects =
193 cmd->HasSwitch(cc::switches::kShowSurfaceDamageRects); 195 cmd->HasSwitch(cc::switches::kShowSurfaceDamageRects);
194 settings.initial_debug_state.show_screen_space_rects = 196 settings.initial_debug_state.show_screen_space_rects =
195 cmd->HasSwitch(cc::switches::kShowScreenSpaceRects); 197 cmd->HasSwitch(cc::switches::kShowScreenSpaceRects);
196 settings.initial_debug_state.show_replica_screen_space_rects = 198 settings.initial_debug_state.show_replica_screen_space_rects =
197 cmd->HasSwitch(cc::switches::kShowReplicaScreenSpaceRects); 199 cmd->HasSwitch(cc::switches::kShowReplicaScreenSpaceRects);
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 widget_->OnSwapBuffersAborted(); 637 widget_->OnSwapBuffersAborted();
636 } 638 }
637 639
638 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() { 640 void RenderWidgetCompositor::RateLimitSharedMainThreadContext() {
639 cc::ContextProvider* provider = 641 cc::ContextProvider* provider =
640 RenderThreadImpl::current()->SharedMainThreadContextProvider().get(); 642 RenderThreadImpl::current()->SharedMainThreadContextProvider().get();
641 provider->Context3d()->rateLimitOffscreenContextCHROMIUM(); 643 provider->Context3d()->rateLimitOffscreenContextCHROMIUM();
642 } 644 }
643 645
644 } // 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