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

Side by Side Diff: cc/raster/one_copy_tile_task_worker_pool.h

Issue 1148413007: cc: Use max_bytes_per_copy_operation setting to determine one-copy flush interval. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ 5 #ifndef CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_
6 #define CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ 6 #define CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 CopySequenceNumber last_flushed_copy_operation_; 120 CopySequenceNumber last_flushed_copy_operation_;
121 121
122 // Task graph used when scheduling tasks and vector used to gather 122 // Task graph used when scheduling tasks and vector used to gather
123 // completed tasks. 123 // completed tasks.
124 TaskGraph graph_; 124 TaskGraph graph_;
125 Task::Vector completed_tasks_; 125 Task::Vector completed_tasks_;
126 126
127 base::Lock lock_; 127 base::Lock lock_;
128 // |lock_| must be acquired when accessing the following members. 128 // |lock_| must be acquired when accessing the following members.
129 base::ConditionVariable copy_operation_count_cv_; 129 base::ConditionVariable copy_operation_count_cv_;
130 size_t bytes_scheduled_since_last_flush_;
vmpstr 2015/06/02 23:23:27 Can you make this int? I'm going through the cc co
reveman 2015/06/04 01:19:51 Done.
130 size_t issued_copy_operation_count_; 131 size_t issued_copy_operation_count_;
131 CopyOperation::Deque pending_copy_operations_; 132 CopyOperation::Deque pending_copy_operations_;
132 CopySequenceNumber next_copy_operation_sequence_; 133 CopySequenceNumber next_copy_operation_sequence_;
133 bool check_for_completed_copy_operations_pending_; 134 bool check_for_completed_copy_operations_pending_;
134 base::TimeTicks last_check_for_completed_copy_operations_time_; 135 base::TimeTicks last_check_for_completed_copy_operations_time_;
135 bool shutdown_; 136 bool shutdown_;
136 137
137 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> weak_ptr_factory_; 138 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> weak_ptr_factory_;
138 // "raster finished" tasks need their own factory as they need to be 139 // "raster finished" tasks need their own factory as they need to be
139 // canceled when ScheduleTasks() is called. 140 // canceled when ScheduleTasks() is called.
140 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> 141 base::WeakPtrFactory<OneCopyTileTaskWorkerPool>
141 task_set_finished_weak_ptr_factory_; 142 task_set_finished_weak_ptr_factory_;
142 143
143 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); 144 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool);
144 }; 145 };
145 146
146 } // namespace cc 147 } // namespace cc
147 148
148 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ 149 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/raster/one_copy_tile_task_worker_pool.cc » ('j') | cc/raster/one_copy_tile_task_worker_pool.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698