| 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_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 explicit PPB_Graphics3D_Impl(PP_Instance instance); | 80 explicit PPB_Graphics3D_Impl(PP_Instance instance); |
| 81 | 81 |
| 82 bool InitRaw(PPB_Graphics3D_API* share_context, | 82 bool InitRaw(PPB_Graphics3D_API* share_context, |
| 83 const int32_t* attrib_list, | 83 const int32_t* attrib_list, |
| 84 gpu::Capabilities* capabilities, | 84 gpu::Capabilities* capabilities, |
| 85 base::SharedMemoryHandle* shared_state_handle, | 85 base::SharedMemoryHandle* shared_state_handle, |
| 86 gpu::CommandBufferId* command_buffer_id); | 86 gpu::CommandBufferId* command_buffer_id); |
| 87 | 87 |
| 88 // GpuControlClient implementation. | 88 // GpuControlClient implementation. |
| 89 void OnGpuControlLostContext() final; | 89 void OnGpuControlLostContext() final; |
| 90 void OnGpuControlLostContextMaybeReentrant() final; |
| 90 void OnGpuControlErrorMessage(const char* msg, int id) final; | 91 void OnGpuControlErrorMessage(const char* msg, int id) final; |
| 91 | 92 |
| 92 // Other notifications from the GPU process. | 93 // Other notifications from the GPU process. |
| 93 void OnSwapBuffers(); | 94 void OnSwapBuffers(); |
| 94 // Notifications sent to plugin. | 95 // Notifications sent to plugin. |
| 95 void SendContextLost(); | 96 void SendContextLost(); |
| 96 | 97 |
| 97 // True if context is bound to instance. | 98 // True if context is bound to instance. |
| 98 bool bound_to_instance_; | 99 bool bound_to_instance_; |
| 99 // True when waiting for compositor to commit our backing texture. | 100 // True when waiting for compositor to commit our backing texture. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 110 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_; | 111 std::unique_ptr<gpu::CommandBufferProxyImpl> command_buffer_; |
| 111 | 112 |
| 112 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; | 113 base::WeakPtrFactory<PPB_Graphics3D_Impl> weak_ptr_factory_; |
| 113 | 114 |
| 114 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); | 115 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace content | 118 } // namespace content |
| 118 | 119 |
| 119 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ | 120 #endif // CONTENT_RENDERER_PEPPER_PPB_GRAPHICS_3D_IMPL_H_ |
| OLD | NEW |