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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 2007163002: cc: Separate raster and decode prepaint regions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_settings.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 cached_managed_memory_policy_(settings.memory_policy_), 216 cached_managed_memory_policy_(settings.memory_policy_),
217 is_synchronous_single_threaded_(!task_runner_provider->HasImplThread() && 217 is_synchronous_single_threaded_(!task_runner_provider->HasImplThread() &&
218 !settings.single_thread_proxy_scheduler), 218 !settings.single_thread_proxy_scheduler),
219 // Must be initialized after is_synchronous_single_threaded_ and 219 // Must be initialized after is_synchronous_single_threaded_ and
220 // task_runner_provider_. 220 // task_runner_provider_.
221 tile_manager_(this, 221 tile_manager_(this,
222 GetTaskRunner(), 222 GetTaskRunner(),
223 is_synchronous_single_threaded_ 223 is_synchronous_single_threaded_
224 ? std::numeric_limits<size_t>::max() 224 ? std::numeric_limits<size_t>::max()
225 : settings.scheduled_raster_task_limit, 225 : settings.scheduled_raster_task_limit,
226 settings.use_partial_raster), 226 settings.use_partial_raster,
227 settings.max_preraster_distance_in_screen_pixels),
227 pinch_gesture_active_(false), 228 pinch_gesture_active_(false),
228 pinch_gesture_end_should_clear_scrolling_layer_(false), 229 pinch_gesture_end_should_clear_scrolling_layer_(false),
229 fps_counter_( 230 fps_counter_(
230 FrameRateCounter::Create(task_runner_provider_->HasImplThread())), 231 FrameRateCounter::Create(task_runner_provider_->HasImplThread())),
231 memory_history_(MemoryHistory::Create()), 232 memory_history_(MemoryHistory::Create()),
232 debug_rect_history_(DebugRectHistory::Create()), 233 debug_rect_history_(DebugRectHistory::Create()),
233 texture_mailbox_deleter_(new TextureMailboxDeleter(GetTaskRunner())), 234 texture_mailbox_deleter_(new TextureMailboxDeleter(GetTaskRunner())),
234 max_memory_needed_bytes_(0), 235 max_memory_needed_bytes_(0),
235 resourceless_software_draw_(false), 236 resourceless_software_draw_(false),
236 animation_host_(), 237 animation_host_(),
(...skipping 3810 matching lines...) Expand 10 before | Expand all | Expand 10 after
4047 const { 4048 const {
4048 return fixed_raster_scale_attempted_scale_change_history_.count() >= 4049 return fixed_raster_scale_attempted_scale_change_history_.count() >=
4049 kFixedRasterScaleAttemptedScaleChangeThreshold; 4050 kFixedRasterScaleAttemptedScaleChangeThreshold;
4050 } 4051 }
4051 4052
4052 void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() { 4053 void LayerTreeHostImpl::SetFixedRasterScaleAttemptedToChangeScale() {
4053 fixed_raster_scale_attempted_scale_change_history_.set(0); 4054 fixed_raster_scale_attempted_scale_change_history_.set(0);
4054 } 4055 }
4055 4056
4056 } // namespace cc 4057 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiles/tile_manager.cc ('k') | cc/trees/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698