| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 bool use_echo_for_swap_ack, | 80 bool use_echo_for_swap_ack, |
| 81 const Attributes& attributes, | 81 const Attributes& attributes, |
| 82 bool bind_generates_resources, | 82 bool bind_generates_resources, |
| 83 const SharedMemoryLimits& limits); | 83 const SharedMemoryLimits& limits); |
| 84 | 84 |
| 85 virtual ~WebGraphicsContext3DCommandBufferImpl(); | 85 virtual ~WebGraphicsContext3DCommandBufferImpl(); |
| 86 | 86 |
| 87 // The following 3 IDs let one uniquely identify this context. | |
| 88 // Gets the GPU process ID for this context. | |
| 89 int GetGPUProcessID(); | |
| 90 | |
| 91 CommandBufferProxyImpl* GetCommandBufferProxy() { | 87 CommandBufferProxyImpl* GetCommandBufferProxy() { |
| 92 return command_buffer_.get(); | 88 return command_buffer_.get(); |
| 93 } | 89 } |
| 94 | 90 |
| 95 CONTENT_EXPORT gpu::ContextSupport* GetContextSupport(); | 91 CONTENT_EXPORT gpu::ContextSupport* GetContextSupport(); |
| 96 | 92 |
| 97 gpu::gles2::GLES2Implementation* GetImplementation() { | 93 gpu::gles2::GLES2Implementation* GetImplementation() { |
| 98 return real_gl_.get(); | 94 return real_gl_.get(); |
| 99 } | 95 } |
| 100 | 96 |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 bool bind_generates_resources_; | 730 bool bind_generates_resources_; |
| 735 bool use_echo_for_swap_ack_; | 731 bool use_echo_for_swap_ack_; |
| 736 SharedMemoryLimits mem_limits_; | 732 SharedMemoryLimits mem_limits_; |
| 737 | 733 |
| 738 uint32_t flush_id_; | 734 uint32_t flush_id_; |
| 739 }; | 735 }; |
| 740 | 736 |
| 741 } // namespace content | 737 } // namespace content |
| 742 | 738 |
| 743 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 739 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |