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

Side by Side Diff: ui/compositor/compositor.cc

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Patch Set: Rebase. Created 4 years, 6 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
« no previous file with comments | « gpu/ipc/service/image_transport_surface_overlay_mac.mm ('k') | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/compositor/compositor.h" 5 #include "ui/compositor/compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <deque> 10 #include <deque>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } else { 118 } else {
119 settings.renderer_settings.disable_display_vsync = true; 119 settings.renderer_settings.disable_display_vsync = true;
120 settings.wait_for_beginframe_interval = false; 120 settings.wait_for_beginframe_interval = false;
121 } 121 }
122 } 122 }
123 settings.renderer_settings.partial_swap_enabled = 123 settings.renderer_settings.partial_swap_enabled =
124 !command_line->HasSwitch(switches::kUIDisablePartialSwap); 124 !command_line->HasSwitch(switches::kUIDisablePartialSwap);
125 #if defined(OS_WIN) 125 #if defined(OS_WIN)
126 settings.renderer_settings.finish_rendering_on_resize = true; 126 settings.renderer_settings.finish_rendering_on_resize = true;
127 #elif defined(OS_MACOSX) 127 #elif defined(OS_MACOSX)
128 settings.renderer_settings.release_overlay_resources_on_swap_complete = true; 128 settings.renderer_settings.release_overlay_resources_after_gpu_query = true;
129 #endif 129 #endif
130 130
131 // These flags should be mirrored by renderer versions in content/renderer/. 131 // These flags should be mirrored by renderer versions in content/renderer/.
132 settings.initial_debug_state.show_debug_borders = 132 settings.initial_debug_state.show_debug_borders =
133 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders); 133 command_line->HasSwitch(cc::switches::kUIShowCompositedLayerBorders);
134 settings.initial_debug_state.show_fps_counter = 134 settings.initial_debug_state.show_fps_counter =
135 command_line->HasSwitch(cc::switches::kUIShowFPSCounter); 135 command_line->HasSwitch(cc::switches::kUIShowFPSCounter);
136 settings.initial_debug_state.show_layer_animation_bounds_rects = 136 settings.initial_debug_state.show_layer_animation_bounds_rects =
137 command_line->HasSwitch(cc::switches::kUIShowLayerAnimationBounds); 137 command_line->HasSwitch(cc::switches::kUIShowLayerAnimationBounds);
138 settings.initial_debug_state.show_paint_rects = 138 settings.initial_debug_state.show_paint_rects =
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 observer_list_, 498 observer_list_,
499 OnCompositingLockStateChanged(this)); 499 OnCompositingLockStateChanged(this));
500 } 500 }
501 501
502 void Compositor::CancelCompositorLock() { 502 void Compositor::CancelCompositorLock() {
503 if (compositor_lock_) 503 if (compositor_lock_)
504 compositor_lock_->CancelLock(); 504 compositor_lock_->CancelLock();
505 } 505 }
506 506
507 } // namespace ui 507 } // namespace ui
OLDNEW
« no previous file with comments | « gpu/ipc/service/image_transport_surface_overlay_mac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698