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

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

Issue 1139903005: Add PERSISTENT_MAP usage for GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: persistentmap: fixmandolinebetter Created 5 years, 7 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) 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects); 124 command_line->HasSwitch(cc::switches::kUIShowReplicaScreenSpaceRects);
125 125
126 settings.initial_debug_state.SetRecordRenderingStats( 126 settings.initial_debug_state.SetRecordRenderingStats(
127 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking)); 127 command_line->HasSwitch(cc::switches::kEnableGpuBenchmarking));
128 128
129 settings.impl_side_painting = IsUIImplSidePaintingEnabled(); 129 settings.impl_side_painting = IsUIImplSidePaintingEnabled();
130 settings.use_display_lists = IsUISlimmingPaintEnabled(); 130 settings.use_display_lists = IsUISlimmingPaintEnabled();
131 settings.use_cached_picture_in_display_list = false; 131 settings.use_cached_picture_in_display_list = false;
132 settings.use_zero_copy = IsUIZeroCopyEnabled(); 132 settings.use_zero_copy = IsUIZeroCopyEnabled();
133 settings.use_one_copy = IsUIOneCopyEnabled(); 133 settings.use_one_copy = IsUIOneCopyEnabled();
134 settings.use_image_texture_target = context_factory_->GetImageTextureTarget(); 134 settings.map_image_texture_target =
135 context_factory_->GetMapImageTextureTarget();
136 settings.persistent_map_image_texture_target =
137 context_factory_->GetPersistentMapImageTextureTarget();
135 // Note: gathering of pixel refs is only needed when using multiple 138 // Note: gathering of pixel refs is only needed when using multiple
136 // raster threads. 139 // raster threads.
137 settings.gather_pixel_refs = false; 140 settings.gather_pixel_refs = false;
138 141
139 settings.use_compositor_animation_timelines = 142 settings.use_compositor_animation_timelines =
140 command_line->HasSwitch(switches::kUIEnableCompositorAnimationTimelines); 143 command_line->HasSwitch(switches::kUIEnableCompositorAnimationTimelines);
141 144
142 base::TimeTicks before_create = base::TimeTicks::Now(); 145 base::TimeTicks before_create = base::TimeTicks::Now();
143 146
144 cc::LayerTreeHost::InitParams params; 147 cc::LayerTreeHost::InitParams params;
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 observer_list_, 434 observer_list_,
432 OnCompositingLockStateChanged(this)); 435 OnCompositingLockStateChanged(this));
433 } 436 }
434 437
435 void Compositor::CancelCompositorLock() { 438 void Compositor::CancelCompositorLock() {
436 if (compositor_lock_) 439 if (compositor_lock_)
437 compositor_lock_->CancelLock(); 440 compositor_lock_->CancelLock();
438 } 441 }
439 442
440 } // namespace ui 443 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698