| OLD | NEW |
| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 } | 47 } |
| 48 | 48 |
| 49 struct GPUCreateCommandBufferConfig; | 49 struct GPUCreateCommandBufferConfig; |
| 50 struct GpuCommandBufferMsg_CreateImage_Params; | 50 struct GpuCommandBufferMsg_CreateImage_Params; |
| 51 struct GpuCommandBufferMsg_SwapBuffersCompleted_Params; | 51 struct GpuCommandBufferMsg_SwapBuffersCompleted_Params; |
| 52 | 52 |
| 53 namespace gpu { | 53 namespace gpu { |
| 54 | 54 |
| 55 class GpuChannel; | 55 class GpuChannel; |
| 56 class GpuWatchdog; | 56 class GpuWatchdogThread; |
| 57 struct WaitForCommandState; | 57 struct WaitForCommandState; |
| 58 | 58 |
| 59 class GPU_EXPORT GpuCommandBufferStub | 59 class GPU_EXPORT GpuCommandBufferStub |
| 60 : public IPC::Listener, | 60 : public IPC::Listener, |
| 61 public IPC::Sender, | 61 public IPC::Sender, |
| 62 public base::SupportsWeakPtr<GpuCommandBufferStub> { | 62 public base::SupportsWeakPtr<GpuCommandBufferStub> { |
| 63 public: | 63 public: |
| 64 class DestructionObserver { | 64 class DestructionObserver { |
| 65 public: | 65 public: |
| 66 // Called in Destroy(), before the context/surface are released. | 66 // Called in Destroy(), before the context/surface are released. |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 | 250 |
| 251 std::unique_ptr<WaitForCommandState> wait_for_token_; | 251 std::unique_ptr<WaitForCommandState> wait_for_token_; |
| 252 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; | 252 std::unique_ptr<WaitForCommandState> wait_for_get_offset_; |
| 253 | 253 |
| 254 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); | 254 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); |
| 255 }; | 255 }; |
| 256 | 256 |
| 257 } // namespace gpu | 257 } // namespace gpu |
| 258 | 258 |
| 259 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ | 259 #endif // GPU_IPC_SERVICE_GPU_COMMAND_BUFFER_STUB_H_ |
| OLD | NEW |