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

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

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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 | « mojo/gpu/mojo_gles2_impl_autogen.cc ('k') | ui/compositor/compositor_switches.h » ('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) 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 <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects); 129 command_line->HasSwitch(cc::switches::kUIShowScreenSpaceRects);
130 settings.initial_debug_state.show_replica_screen_space_rects = 130 settings.initial_debug_state.show_replica_screen_space_rects =
131 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects); 131 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects);
132 132
133 settings.initial_debug_state.SetRecordRenderingStats( 133 settings.initial_debug_state.SetRecordRenderingStats(
134 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); 134 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking));
135 135
136 settings.use_display_lists = true; 136 settings.use_display_lists = true;
137 137
138 settings.use_zero_copy = IsUIZeroCopyEnabled(); 138 settings.use_zero_copy = IsUIZeroCopyEnabled();
139 settings.use_one_copy = IsUIOneCopyEnabled();
140 139
141 settings.renderer_settings.use_rgba_4444_textures = 140 settings.renderer_settings.use_rgba_4444_textures =
142 command_line->HasSwitch(switches::kUIEnableRGBA4444Textures); 141 command_line->HasSwitch(switches::kUIEnableRGBA4444Textures);
143 142
144 // Use PERSISTENT_MAP memory buffers to support partial tile raster for 143 // Use PERSISTENT_MAP memory buffers to support partial tile raster for
145 // software raster into GpuMemoryBuffers. 144 // software raster into GpuMemoryBuffers.
146 gfx::BufferUsage usage = gfx::BufferUsage::PERSISTENT_MAP; 145 gfx::BufferUsage usage = gfx::BufferUsage::PERSISTENT_MAP;
147 settings.use_persistent_map_for_gpu_memory_buffers = true; 146 settings.use_persistent_map_for_gpu_memory_buffers = true;
148 147
149 for (size_t format = 0; 148 for (size_t format = 0;
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 observer_list_, 465 observer_list_,
467 OnCompositingLockStateChanged(this)); 466 OnCompositingLockStateChanged(this));
468 } 467 }
469 468
470 void Compositor::CancelCompositorLock() { 469 void Compositor::CancelCompositorLock() {
471 if (compositor_lock_) 470 if (compositor_lock_)
472 compositor_lock_->CancelLock(); 471 compositor_lock_->CancelLock();
473 } 472 }
474 473
475 } // namespace ui 474 } // namespace ui
OLDNEW
« no previous file with comments | « mojo/gpu/mojo_gles2_impl_autogen.cc ('k') | ui/compositor/compositor_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698