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

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

Issue 2811813004: Surface Synchronization: Distinguish between dependencies and references (Closed)
Patch Set: Addressed Vlad's comments Created 3 years, 8 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <limits> 10 #include <limits>
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 cmd.HasSwitch(switches::kShowPaintRects); 362 cmd.HasSwitch(switches::kShowPaintRects);
363 settings.initial_debug_state.show_property_changed_rects = 363 settings.initial_debug_state.show_property_changed_rects =
364 cmd.HasSwitch(cc::switches::kShowPropertyChangedRects); 364 cmd.HasSwitch(cc::switches::kShowPropertyChangedRects);
365 settings.initial_debug_state.show_surface_damage_rects = 365 settings.initial_debug_state.show_surface_damage_rects =
366 cmd.HasSwitch(cc::switches::kShowSurfaceDamageRects); 366 cmd.HasSwitch(cc::switches::kShowSurfaceDamageRects);
367 settings.initial_debug_state.show_screen_space_rects = 367 settings.initial_debug_state.show_screen_space_rects =
368 cmd.HasSwitch(cc::switches::kShowScreenSpaceRects); 368 cmd.HasSwitch(cc::switches::kShowScreenSpaceRects);
369 369
370 settings.initial_debug_state.SetRecordRenderingStats( 370 settings.initial_debug_state.SetRecordRenderingStats(
371 cmd.HasSwitch(cc::switches::kEnableGpuBenchmarking)); 371 cmd.HasSwitch(cc::switches::kEnableGpuBenchmarking));
372 settings.needs_valid_local_surface_id = 372 settings.enable_surface_synchronization =
373 cmd.HasSwitch(cc::switches::kEnableSurfaceSynchronization); 373 cmd.HasSwitch(cc::switches::kEnableSurfaceSynchronization);
374 374
375 if (cmd.HasSwitch(cc::switches::kSlowDownRasterScaleFactor)) { 375 if (cmd.HasSwitch(cc::switches::kSlowDownRasterScaleFactor)) {
376 const int kMinSlowDownScaleFactor = 0; 376 const int kMinSlowDownScaleFactor = 0;
377 const int kMaxSlowDownScaleFactor = INT_MAX; 377 const int kMaxSlowDownScaleFactor = INT_MAX;
378 GetSwitchValueAsInt( 378 GetSwitchValueAsInt(
379 cmd, cc::switches::kSlowDownRasterScaleFactor, kMinSlowDownScaleFactor, 379 cmd, cc::switches::kSlowDownRasterScaleFactor, kMinSlowDownScaleFactor,
380 kMaxSlowDownScaleFactor, 380 kMaxSlowDownScaleFactor,
381 &settings.initial_debug_state.slow_down_raster_scale_factor); 381 &settings.initial_debug_state.slow_down_raster_scale_factor);
382 } 382 }
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) { 1147 void RenderWidgetCompositor::SetContentSourceId(uint32_t id) {
1148 layer_tree_host_->SetContentSourceId(id); 1148 layer_tree_host_->SetContentSourceId(id);
1149 } 1149 }
1150 1150
1151 void RenderWidgetCompositor::SetLocalSurfaceId( 1151 void RenderWidgetCompositor::SetLocalSurfaceId(
1152 const cc::LocalSurfaceId& local_surface_id) { 1152 const cc::LocalSurfaceId& local_surface_id) {
1153 layer_tree_host_->SetLocalSurfaceId(local_surface_id); 1153 layer_tree_host_->SetLocalSurfaceId(local_surface_id);
1154 } 1154 }
1155 1155
1156 } // namespace content 1156 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698