| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 GURL active_url_; | 199 GURL active_url_; |
| 200 CommandBufferContextType context_type_; | 200 CommandBufferContextType context_type_; |
| 201 | 201 |
| 202 gfx::GpuPreference gpu_preference_; | 202 gfx::GpuPreference gpu_preference_; |
| 203 | 203 |
| 204 scoped_ptr<CommandBufferProxyImpl> command_buffer_; | 204 scoped_ptr<CommandBufferProxyImpl> command_buffer_; |
| 205 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_; | 205 scoped_ptr<gpu::gles2::GLES2CmdHelper> gles2_helper_; |
| 206 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; | 206 scoped_ptr<gpu::TransferBuffer> transfer_buffer_; |
| 207 scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; | 207 scoped_ptr<gpu::gles2::GLES2Implementation> real_gl_; |
| 208 scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; | 208 scoped_ptr<gpu::gles2::GLES2Interface> trace_gl_; |
| 209 Error last_error_; | |
| 210 SharedMemoryLimits mem_limits_; | 209 SharedMemoryLimits mem_limits_; |
| 211 scoped_refptr<ShareGroup> share_group_; | 210 scoped_refptr<ShareGroup> share_group_; |
| 212 | 211 |
| 213 // Member variables should appear before the WeakPtrFactory, to ensure | 212 // Member variables should appear before the WeakPtrFactory, to ensure |
| 214 // that any WeakPtrs to Controller are invalidated before its members | 213 // that any WeakPtrs to Controller are invalidated before its members |
| 215 // variable's destructors are executed, rendering them invalid. | 214 // variable's destructors are executed, rendering them invalid. |
| 216 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; | 215 base::WeakPtrFactory<WebGraphicsContext3DCommandBufferImpl> weak_ptr_factory_; |
| 217 }; | 216 }; |
| 218 | 217 |
| 219 } // namespace content | 218 } // namespace content |
| 220 | 219 |
| 221 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 220 #endif // CONTENT_COMMON_GPU_CLIENT_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |