OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
7 | 7 |
8 #include "base/memory/scoped_callback_factory.h" | 8 #include "base/memory/scoped_callback_factory.h" |
9 #include "ppapi/shared_impl/graphics_3d_impl.h" | 9 #include "ppapi/shared_impl/graphics_3d_impl.h" |
10 #include "ppapi/shared_impl/resource.h" | 10 #include "ppapi/shared_impl/resource.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Notifications sent to plugin. | 76 // Notifications sent to plugin. |
77 void SendContextLost(); | 77 void SendContextLost(); |
78 | 78 |
79 // True if context is bound to instance. | 79 // True if context is bound to instance. |
80 bool bound_to_instance_; | 80 bool bound_to_instance_; |
81 // True when waiting for compositor to commit our backing texture. | 81 // True when waiting for compositor to commit our backing texture. |
82 bool commit_pending_; | 82 bool commit_pending_; |
83 // PluginDelegate's 3D Context. Responsible for providing the command buffer. | 83 // PluginDelegate's 3D Context. Responsible for providing the command buffer. |
84 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; | 84 scoped_ptr<PluginDelegate::PlatformContext3D> platform_context_; |
85 base::ScopedCallbackFactory<PPB_Graphics3D_Impl> callback_factory_; | 85 base::ScopedCallbackFactory<PPB_Graphics3D_Impl> callback_factory_; |
| 86 ScopedRunnableMethodFactory<PPB_Graphics3D_Impl> method_factory_; |
86 | 87 |
87 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); | 88 DISALLOW_COPY_AND_ASSIGN(PPB_Graphics3D_Impl); |
88 }; | 89 }; |
89 | 90 |
90 } // namespace ppapi | 91 } // namespace ppapi |
91 } // namespace webkit | 92 } // namespace webkit |
92 | 93 |
93 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ | 94 #endif // WEBKIT_PLUGINS_PPAPI_PPB_GRAPHICS_3D_IMPL_H_ |
OLD | NEW |