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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.h

Issue 12040049: gpu: Implement idle async pixel transfers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review feedback and make BindFinishedAsyncPixelTransfers() handle out of order async upload… Created 7 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 | Annotate | Revision Log
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 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // decoder_route_id. 232 // decoder_route_id.
233 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 233 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
234 234
235 ObserverList<DestructionObserver> destruction_observers_; 235 ObserverList<DestructionObserver> destruction_observers_;
236 236
237 // A queue of sync points associated with this stub. 237 // A queue of sync points associated with this stub.
238 std::deque<uint32> sync_points_; 238 std::deque<uint32> sync_points_;
239 int sync_point_wait_count_; 239 int sync_point_wait_count_;
240 240
241 bool delayed_work_scheduled_; 241 bool delayed_work_scheduled_;
242 bool is_idle_;
243 base::TimeTicks last_idle_time_;
242 244
243 scoped_refptr<gpu::PreemptionFlag> preemption_flag_; 245 scoped_refptr<gpu::PreemptionFlag> preemption_flag_;
244 246
245 GURL active_url_; 247 GURL active_url_;
246 size_t active_url_hash_; 248 size_t active_url_hash_;
247 249
248 size_t total_gpu_memory_; 250 size_t total_gpu_memory_;
249 251
250 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 252 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
251 }; 253 };
252 254
253 } // namespace content 255 } // namespace content
254 256
255 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 257 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | content/common/gpu/gpu_command_buffer_stub.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698