| 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_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_old.h" | 10 #include "base/callback_old.h" |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const = 0; | 152 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const = 0; |
| 153 | 153 |
| 154 virtual TransportDIB* GetTransportDIB() const = 0; | 154 virtual TransportDIB* GetTransportDIB() const = 0; |
| 155 }; | 155 }; |
| 156 | 156 |
| 157 class PlatformContext3D { | 157 class PlatformContext3D { |
| 158 public: | 158 public: |
| 159 virtual ~PlatformContext3D() {} | 159 virtual ~PlatformContext3D() {} |
| 160 | 160 |
| 161 // Initialize the context. | 161 // Initialize the context. |
| 162 virtual bool Init() = 0; | 162 virtual bool Init(const int32* attrib_list) = 0; |
| 163 | 163 |
| 164 // Set an optional callback that will be invoked when the side effects of | 164 // Set an optional callback that will be invoked when the side effects of |
| 165 // a SwapBuffers call become visible to the compositor. Takes ownership | 165 // a SwapBuffers call become visible to the compositor. Takes ownership |
| 166 // of the callback. | 166 // of the callback. |
| 167 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; | 167 virtual void SetSwapBuffersCallback(Callback0::Type* callback) = 0; |
| 168 | 168 |
| 169 // If the plugin instance is backed by an OpenGL, return its ID in the | 169 // If the plugin instance is backed by an OpenGL, return its ID in the |
| 170 // compositors namespace. Otherwise return 0. Returns 0 by default. | 170 // compositors namespace. Otherwise return 0. Returns 0 by default. |
| 171 virtual unsigned GetBackingTextureId() = 0; | 171 virtual unsigned GetBackingTextureId() = 0; |
| 172 | 172 |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 414 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
| 415 | 415 |
| 416 // Returns the current preferences. | 416 // Returns the current preferences. |
| 417 virtual ::ppapi::Preferences GetPreferences() = 0; | 417 virtual ::ppapi::Preferences GetPreferences() = 0; |
| 418 }; | 418 }; |
| 419 | 419 |
| 420 } // namespace ppapi | 420 } // namespace ppapi |
| 421 } // namespace webkit | 421 } // namespace webkit |
| 422 | 422 |
| 423 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 423 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |