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

Side by Side Diff: gpu/ipc/service/gpu_command_buffer_stub.h

Issue 2693333003: Don't use a global share group for the passthrough command buffer contexts. (Closed)
Patch Set: Created 3 years, 10 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 (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 GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 6 #define GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 19 matching lines...) Expand all
30 #include "ipc/ipc_listener.h" 30 #include "ipc/ipc_listener.h"
31 #include "ipc/ipc_sender.h" 31 #include "ipc/ipc_sender.h"
32 #include "ui/events/latency_info.h" 32 #include "ui/events/latency_info.h"
33 #include "ui/gfx/geometry/size.h" 33 #include "ui/gfx/geometry/size.h"
34 #include "ui/gfx/gpu_memory_buffer.h" 34 #include "ui/gfx/gpu_memory_buffer.h"
35 #include "ui/gfx/swap_result.h" 35 #include "ui/gfx/swap_result.h"
36 #include "ui/gl/gl_surface.h" 36 #include "ui/gl/gl_surface.h"
37 #include "ui/gl/gpu_preference.h" 37 #include "ui/gl/gpu_preference.h"
38 #include "url/gurl.h" 38 #include "url/gurl.h"
39 39
40 namespace gl {
41 class GLShareGroup;
42 }
43
40 namespace gpu { 44 namespace gpu {
41 struct Mailbox; 45 struct Mailbox;
42 struct SyncToken; 46 struct SyncToken;
43 class SyncPointClient; 47 class SyncPointClient;
44 } 48 }
45 49
46 struct GPUCreateCommandBufferConfig; 50 struct GPUCreateCommandBufferConfig;
47 struct GpuCommandBufferMsg_CreateImage_Params; 51 struct GpuCommandBufferMsg_CreateImage_Params;
48 52
49 namespace gpu { 53 namespace gpu {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 const CommandBufferId command_buffer_id_; 230 const CommandBufferId command_buffer_id_;
227 const int32_t stream_id_; 231 const int32_t stream_id_;
228 const int32_t route_id_; 232 const int32_t route_id_;
229 uint32_t last_flush_count_; 233 uint32_t last_flush_count_;
230 234
231 std::unique_ptr<CommandBufferService> command_buffer_; 235 std::unique_ptr<CommandBufferService> command_buffer_;
232 std::unique_ptr<gles2::GLES2Decoder> decoder_; 236 std::unique_ptr<gles2::GLES2Decoder> decoder_;
233 std::unique_ptr<CommandExecutor> executor_; 237 std::unique_ptr<CommandExecutor> executor_;
234 std::unique_ptr<SyncPointClient> sync_point_client_; 238 std::unique_ptr<SyncPointClient> sync_point_client_;
235 scoped_refptr<gl::GLSurface> surface_; 239 scoped_refptr<gl::GLSurface> surface_;
240 scoped_refptr<gl::GLShareGroup> share_group_;
236 241
237 base::ObserverList<DestructionObserver> destruction_observers_; 242 base::ObserverList<DestructionObserver> destruction_observers_;
238 243
239 bool waiting_for_sync_point_; 244 bool waiting_for_sync_point_;
240 245
241 base::TimeTicks process_delayed_work_time_; 246 base::TimeTicks process_delayed_work_time_;
242 uint32_t previous_processed_num_; 247 uint32_t previous_processed_num_;
243 base::TimeTicks last_idle_time_; 248 base::TimeTicks last_idle_time_;
244 249
245 LatencyInfoCallback latency_info_callback_; 250 LatencyInfoCallback latency_info_callback_;
246 251
247 GURL active_url_; 252 GURL active_url_;
248 size_t active_url_hash_; 253 size_t active_url_hash_;
249 254
250 std::unique_ptr<WaitForCommandState> wait_for_token_; 255 std::unique_ptr<WaitForCommandState> wait_for_token_;
251 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; 256 std::unique_ptr<WaitForCommandState> wait_for_get_offset_;
252 257
253 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 258 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
254 }; 259 };
255 260
256 } // namespace gpu 261 } // namespace gpu
257 262
258 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ 263 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698