| 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 CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 WebGraphicsContext3DCommandBufferImpl( | 76 WebGraphicsContext3DCommandBufferImpl( |
| 77 int surface_id, | 77 int surface_id, |
| 78 const GURL& active_url, | 78 const GURL& active_url, |
| 79 GpuChannelHost* host, | 79 GpuChannelHost* host, |
| 80 const Attributes& attributes, | 80 const Attributes& attributes, |
| 81 bool bind_generates_resources, | 81 bool bind_generates_resources, |
| 82 const SharedMemoryLimits& limits); | 82 const SharedMemoryLimits& limits); |
| 83 | 83 |
| 84 virtual ~WebGraphicsContext3DCommandBufferImpl(); | 84 virtual ~WebGraphicsContext3DCommandBufferImpl(); |
| 85 | 85 |
| 86 // The following 3 IDs let one uniquely identify this context. | |
| 87 // Gets the GPU process ID for this context. | |
| 88 int GetGPUProcessID(); | |
| 89 | |
| 90 CommandBufferProxyImpl* GetCommandBufferProxy() { | 86 CommandBufferProxyImpl* GetCommandBufferProxy() { |
| 91 return command_buffer_.get(); | 87 return command_buffer_.get(); |
| 92 } | 88 } |
| 93 | 89 |
| 94 CONTENT_EXPORT gpu::ContextSupport* GetContextSupport(); | 90 CONTENT_EXPORT gpu::ContextSupport* GetContextSupport(); |
| 95 | 91 |
| 96 gpu::gles2::GLES2Implementation* GetImplementation() { | 92 gpu::gles2::GLES2Implementation* GetImplementation() { |
| 97 return real_gl_.get(); | 93 return real_gl_.get(); |
| 98 } | 94 } |
| 99 | 95 |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 Error last_error_; | 723 Error last_error_; |
| 728 bool bind_generates_resources_; | 724 bool bind_generates_resources_; |
| 729 SharedMemoryLimits mem_limits_; | 725 SharedMemoryLimits mem_limits_; |
| 730 | 726 |
| 731 uint32_t flush_id_; | 727 uint32_t flush_id_; |
| 732 }; | 728 }; |
| 733 | 729 |
| 734 } // namespace content | 730 } // namespace content |
| 735 | 731 |
| 736 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 732 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |