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

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

Issue 1339203002: Added global order numbers to in process command buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor changes Created 5 years, 2 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 | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('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 (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 16 matching lines...) Expand all
27 #include "ui/gfx/geometry/size.h" 27 #include "ui/gfx/geometry/size.h"
28 #include "ui/gfx/gpu_memory_buffer.h" 28 #include "ui/gfx/gpu_memory_buffer.h"
29 #include "ui/gfx/native_widget_types.h" 29 #include "ui/gfx/native_widget_types.h"
30 #include "ui/gfx/swap_result.h" 30 #include "ui/gfx/swap_result.h"
31 #include "ui/gl/gl_surface.h" 31 #include "ui/gl/gl_surface.h"
32 #include "ui/gl/gpu_preference.h" 32 #include "ui/gl/gpu_preference.h"
33 #include "url/gurl.h" 33 #include "url/gurl.h"
34 34
35 namespace gpu { 35 namespace gpu {
36 struct Mailbox; 36 struct Mailbox;
37 class SyncPointClient;
37 class ValueStateMap; 38 class ValueStateMap;
38 namespace gles2 { 39 namespace gles2 {
39 class MailboxManager; 40 class MailboxManager;
40 class SubscriptionRefSet; 41 class SubscriptionRefSet;
41 } 42 }
42 } 43 }
43 44
44 namespace content { 45 namespace content {
45 46
46 class GpuChannel; 47 class GpuChannel;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 const uint64_t command_buffer_id_; 265 const uint64_t command_buffer_id_;
265 const int32 stream_id_; 266 const int32 stream_id_;
266 const int32 route_id_; 267 const int32 route_id_;
267 const int32 surface_id_; 268 const int32 surface_id_;
268 bool software_; 269 bool software_;
269 uint32 last_flush_count_; 270 uint32 last_flush_count_;
270 271
271 scoped_ptr<gpu::CommandBufferService> command_buffer_; 272 scoped_ptr<gpu::CommandBufferService> command_buffer_;
272 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_; 273 scoped_ptr<gpu::gles2::GLES2Decoder> decoder_;
273 scoped_ptr<gpu::GpuScheduler> scheduler_; 274 scoped_ptr<gpu::GpuScheduler> scheduler_;
275 scoped_ptr<gpu::SyncPointClient> sync_point_client_;
274 scoped_refptr<gfx::GLSurface> surface_; 276 scoped_refptr<gfx::GLSurface> surface_;
275 277
276 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_; 278 scoped_ptr<GpuMemoryManagerClientState> memory_manager_client_state_;
277 // The last memory allocation received from the GpuMemoryManager (used to 279 // The last memory allocation received from the GpuMemoryManager (used to
278 // elide redundant work). 280 // elide redundant work).
279 bool last_memory_allocation_valid_; 281 bool last_memory_allocation_valid_;
280 gpu::MemoryAllocation last_memory_allocation_; 282 gpu::MemoryAllocation last_memory_allocation_;
281 283
282 GpuWatchdog* watchdog_; 284 GpuWatchdog* watchdog_;
283 285
(...skipping 17 matching lines...) Expand all
301 size_t total_gpu_memory_; 303 size_t total_gpu_memory_;
302 scoped_ptr<WaitForCommandState> wait_for_token_; 304 scoped_ptr<WaitForCommandState> wait_for_token_;
303 scoped_ptr<WaitForCommandState> wait_for_get_offset_; 305 scoped_ptr<WaitForCommandState> wait_for_get_offset_;
304 306
305 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 307 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
306 }; 308 };
307 309
308 } // namespace content 310 } // namespace content
309 311
310 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 312 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698