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

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

Issue 2324273002: Remove external begin frame source parameter and settings (Closed)
Patch Set: Rebase Created 4 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
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 settings.renderer_settings.buffer_to_texture_target_map.insert( 176 settings.renderer_settings.buffer_to_texture_target_map.insert(
177 cc::BufferToTextureTargetMap::value_type( 177 cc::BufferToTextureTargetMap::value_type(
178 cc::BufferToTextureTargetKey(usage, format), target)); 178 cc::BufferToTextureTargetKey(usage, format), target));
179 } 179 }
180 } 180 }
181 181
182 // Note: Only enable image decode tasks if we have more than one worker 182 // Note: Only enable image decode tasks if we have more than one worker
183 // thread. 183 // thread.
184 settings.image_decode_tasks_enabled = false; 184 settings.image_decode_tasks_enabled = false;
185 185
186 settings.use_compositor_frame_sink_begin_frame_source = true;
187
188 settings.gpu_memory_policy.bytes_limit_when_visible = 512 * 1024 * 1024; 186 settings.gpu_memory_policy.bytes_limit_when_visible = 512 * 1024 * 1024;
189 settings.gpu_memory_policy.priority_cutoff_when_visible = 187 settings.gpu_memory_policy.priority_cutoff_when_visible =
190 gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE; 188 gpu::MemoryAllocation::CUTOFF_ALLOW_NICE_TO_HAVE;
191 189
192 base::TimeTicks before_create = base::TimeTicks::Now(); 190 base::TimeTicks before_create = base::TimeTicks::Now();
193 191
194 cc::LayerTreeHostInProcess::InitParams params; 192 cc::LayerTreeHostInProcess::InitParams params;
195 params.client = this; 193 params.client = this;
196 params.shared_bitmap_manager = context_factory_->GetSharedBitmapManager(); 194 params.shared_bitmap_manager = context_factory_->GetSharedBitmapManager();
197 params.gpu_memory_buffer_manager = 195 params.gpu_memory_buffer_manager =
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 observer_list_, 548 observer_list_,
551 OnCompositingLockStateChanged(this)); 549 OnCompositingLockStateChanged(this));
552 } 550 }
553 551
554 void Compositor::CancelCompositorLock() { 552 void Compositor::CancelCompositorLock() {
555 if (compositor_lock_) 553 if (compositor_lock_)
556 compositor_lock_->CancelLock(); 554 compositor_lock_->CancelLock();
557 } 555 }
558 556
559 } // namespace ui 557 } // namespace ui
OLDNEW
« cc/trees/layer_tree_host.h ('K') | « content/renderer/gpu/render_widget_compositor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698