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

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

Issue 2862443002: Fix bug in virtualized GL context state management upon creation. (Closed)
Patch Set: Created 3 years, 7 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // Called in Destroy(), before the context/surface are released. 63 // Called in Destroy(), before the context/surface are released.
64 virtual void OnWillDestroyStub() = 0; 64 virtual void OnWillDestroyStub() = 0;
65 65
66 protected: 66 protected:
67 virtual ~DestructionObserver() {} 67 virtual ~DestructionObserver() {}
68 }; 68 };
69 69
70 typedef base::Callback<void(const std::vector<ui::LatencyInfo>&)> 70 typedef base::Callback<void(const std::vector<ui::LatencyInfo>&)>
71 LatencyInfoCallback; 71 LatencyInfoCallback;
72 72
73 // This must leave the GL context associated with the newly-created
74 // GpuCommandBufferStub current, so the GpuChannel can initialize
75 // the gpu::Capabilities.
73 static std::unique_ptr<GpuCommandBufferStub> Create( 76 static std::unique_ptr<GpuCommandBufferStub> Create(
74 GpuChannel* channel, 77 GpuChannel* channel,
75 GpuCommandBufferStub* share_group, 78 GpuCommandBufferStub* share_group,
76 const GPUCreateCommandBufferConfig& init_params, 79 const GPUCreateCommandBufferConfig& init_params,
77 CommandBufferId command_buffer_id, 80 CommandBufferId command_buffer_id,
78 SequenceId sequence_id, 81 SequenceId sequence_id,
79 int32_t stream_id, 82 int32_t stream_id,
80 int32_t route_id, 83 int32_t route_id,
81 std::unique_ptr<base::SharedMemory> shared_state_shm); 84 std::unique_ptr<base::SharedMemory> shared_state_shm);
82 85
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 254
252 std::unique_ptr<WaitForCommandState> wait_for_token_; 255 std::unique_ptr<WaitForCommandState> wait_for_token_;
253 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; 256 std::unique_ptr<WaitForCommandState> wait_for_get_offset_;
254 257
255 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 258 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
256 }; 259 };
257 260
258 } // namespace gpu 261 } // namespace gpu
259 262
260 #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