| 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 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const = 0; | 163 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const = 0; |
| 164 | 164 |
| 165 virtual TransportDIB* GetTransportDIB() const = 0; | 165 virtual TransportDIB* GetTransportDIB() const = 0; |
| 166 }; | 166 }; |
| 167 | 167 |
| 168 class PlatformContext3D { | 168 class PlatformContext3D { |
| 169 public: | 169 public: |
| 170 virtual ~PlatformContext3D() {} | 170 virtual ~PlatformContext3D() {} |
| 171 | 171 |
| 172 // Initialize the context. | 172 // Initialize the context. |
| 173 virtual bool Init(const int32* attrib_list) = 0; | 173 virtual bool Init(const int32* attrib_list, |
| 174 PlatformContext3D* share_context) = 0; |
| 174 | 175 |
| 175 // If the plugin instance is backed by an OpenGL, return its ID in the | 176 // If the plugin instance is backed by an OpenGL, return its ID in the |
| 176 // compositors namespace. Otherwise return 0. Returns 0 by default. | 177 // compositors namespace. Otherwise return 0. Returns 0 by default. |
| 177 virtual unsigned GetBackingTextureId() = 0; | 178 virtual unsigned GetBackingTextureId() = 0; |
| 178 | 179 |
| 179 // Returns true if the backing texture is always opaque. | 180 // Returns true if the backing texture is always opaque. |
| 180 virtual bool IsOpaque() = 0; | 181 virtual bool IsOpaque() = 0; |
| 181 | 182 |
| 182 // This call will return the address of the command buffer for this context | 183 // This call will return the address of the command buffer for this context |
| 183 // that is constructed in Initialize() and is valid until this context is | 184 // that is constructed in Initialize() and is valid until this context is |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 628 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 628 | 629 |
| 629 // Returns a Device ID | 630 // Returns a Device ID |
| 630 virtual std::string GetDeviceID() = 0; | 631 virtual std::string GetDeviceID() = 0; |
| 631 }; | 632 }; |
| 632 | 633 |
| 633 } // namespace ppapi | 634 } // namespace ppapi |
| 634 } // namespace webkit | 635 } // namespace webkit |
| 635 | 636 |
| 636 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 637 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |