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

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

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void RemoveStagingBuffer(const StagingBuffer* staging_buffer); 122 void RemoveStagingBuffer(const StagingBuffer* staging_buffer);
123 void MarkStagingBufferAsFree(const StagingBuffer* staging_buffer); 123 void MarkStagingBufferAsFree(const StagingBuffer* staging_buffer);
124 void MarkStagingBufferAsBusy(const StagingBuffer* staging_buffer); 124 void MarkStagingBufferAsBusy(const StagingBuffer* staging_buffer);
125 scoped_ptr<StagingBuffer> AcquireStagingBuffer(const Resource* resource, 125 scoped_ptr<StagingBuffer> AcquireStagingBuffer(const Resource* resource,
126 uint64_t previous_content_id); 126 uint64_t previous_content_id);
127 base::TimeTicks GetUsageTimeForLRUBuffer(); 127 base::TimeTicks GetUsageTimeForLRUBuffer();
128 void ScheduleReduceMemoryUsage(); 128 void ScheduleReduceMemoryUsage();
129 void ReduceMemoryUsage(); 129 void ReduceMemoryUsage();
130 void ReleaseBuffersNotUsedSince(base::TimeTicks time); 130 void ReleaseBuffersNotUsedSince(base::TimeTicks time);
131 131
132 scoped_refptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() 132 scoped_ptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() const;
133 const;
134 void StagingStateAsValueInto( 133 void StagingStateAsValueInto(
135 base::trace_event::TracedValue* staging_state) const; 134 base::trace_event::TracedValue* staging_state) const;
136 135
137 scoped_refptr<base::SequencedTaskRunner> task_runner_; 136 scoped_refptr<base::SequencedTaskRunner> task_runner_;
138 TaskGraphRunner* task_graph_runner_; 137 TaskGraphRunner* task_graph_runner_;
139 const NamespaceToken namespace_token_; 138 const NamespaceToken namespace_token_;
140 ResourceProvider* const resource_provider_; 139 ResourceProvider* const resource_provider_;
141 const int max_bytes_per_copy_operation_; 140 const int max_bytes_per_copy_operation_;
142 const bool use_partial_raster_; 141 const bool use_partial_raster_;
143 142
(...skipping 16 matching lines...) Expand all
160 base::Closure reduce_memory_usage_callback_; 159 base::Closure reduce_memory_usage_callback_;
161 160
162 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> weak_ptr_factory_; 161 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> weak_ptr_factory_;
163 162
164 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); 163 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool);
165 }; 164 };
166 165
167 } // namespace cc 166 } // namespace cc
168 167
169 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ 168 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698