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

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

Issue 2324273002: Remove external begin frame source parameter and settings (Closed)
Patch Set: Add back comment, remove more febfs includes 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
« no previous file with comments | « content/test/fake_compositor_dependencies.cc ('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 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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 observer_list_, 549 observer_list_,
552 OnCompositingLockStateChanged(this)); 550 OnCompositingLockStateChanged(this));
553 } 551 }
554 552
555 void Compositor::CancelCompositorLock() { 553 void Compositor::CancelCompositorLock() {
556 if (compositor_lock_) 554 if (compositor_lock_)
557 compositor_lock_->CancelLock(); 555 compositor_lock_->CancelLock();
558 } 556 }
559 557
560 } // namespace ui 558 } // namespace ui
OLDNEW
« no previous file with comments | « content/test/fake_compositor_dependencies.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698