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

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: remove texture_dirty_ state from AsyncPixelTransferDelegateIdle 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL. 185 // Wrapper for GpuScheduler::PutChanged that sets the crash report URL.
186 void PutChanged(); 186 void PutChanged();
187 187
188 // Poll the command buffer to execute work. 188 // Poll the command buffer to execute work.
189 void PollWork(); 189 void PollWork();
190 190
191 // Whether this command buffer needs to be polled again in the future. 191 // Whether this command buffer needs to be polled again in the future.
192 bool HasMoreWork(); 192 bool HasMoreWork();
193 193
194 void ScheduleDelayedWork(int64 delay); 194 void ScheduleDelayedWork();
195 195
196 // The lifetime of objects of this class is managed by a GpuChannel. The 196 // The lifetime of objects of this class is managed by a GpuChannel. The
197 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they 197 // GpuChannels destroy all the GpuCommandBufferStubs that they own when they
198 // are destroyed. So a raw pointer is safe. 198 // are destroyed. So a raw pointer is safe.
199 GpuChannel* channel_; 199 GpuChannel* channel_;
200 200
201 // The group of contexts that share namespaces with this context. 201 // The group of contexts that share namespaces with this context.
202 scoped_refptr<gpu::gles2::ContextGroup> context_group_; 202 scoped_refptr<gpu::gles2::ContextGroup> context_group_;
203 203
204 gfx::GLSurfaceHandle handle_; 204 gfx::GLSurfaceHandle handle_;
(...skipping 29 matching lines...) Expand all
234 // decoder_route_id. 234 // decoder_route_id.
235 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 235 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
236 236
237 ObserverList<DestructionObserver> destruction_observers_; 237 ObserverList<DestructionObserver> destruction_observers_;
238 238
239 // A queue of sync points associated with this stub. 239 // A queue of sync points associated with this stub.
240 std::deque<uint32> sync_points_; 240 std::deque<uint32> sync_points_;
241 int sync_point_wait_count_; 241 int sync_point_wait_count_;
242 242
243 bool delayed_work_scheduled_; 243 bool delayed_work_scheduled_;
244 uint64 previous_messages_processed_;
245 base::TimeTicks last_idle_time_;
244 246
245 scoped_refptr<gpu::PreemptionFlag> preemption_flag_; 247 scoped_refptr<gpu::PreemptionFlag> preemption_flag_;
246 248
247 GURL active_url_; 249 GURL active_url_;
248 size_t active_url_hash_; 250 size_t active_url_hash_;
249 251
250 size_t total_gpu_memory_; 252 size_t total_gpu_memory_;
251 253
252 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 254 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
253 }; 255 };
254 256
255 } // namespace content 257 } // namespace content
256 258
257 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 259 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698