Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 10386145: Add the necessary plumbing mechanisms to ensure proper WebGL support inside the <browser> tag, whic… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
24 #include "ppapi/c/pp_errors.h" 24 #include "ppapi/c/pp_errors.h"
25 #include "ppapi/c/pp_instance.h" 25 #include "ppapi/c/pp_instance.h"
26 #include "ppapi/c/pp_resource.h" 26 #include "ppapi/c/pp_resource.h"
27 #include "ppapi/c/pp_stdint.h" 27 #include "ppapi/c/pp_stdint.h"
28 #include "ui/gfx/size.h" 28 #include "ui/gfx/size.h"
29 #include "webkit/fileapi/file_system_types.h" 29 #include "webkit/fileapi/file_system_types.h"
30 #include "webkit/glue/clipboard_client.h" 30 #include "webkit/glue/clipboard_client.h"
31 #include "webkit/plugins/ppapi/dir_contents.h" 31 #include "webkit/plugins/ppapi/dir_contents.h"
32 #include "webkit/quota/quota_types.h" 32 #include "webkit/quota/quota_types.h"
33 33
34 class CommandBufferProxy;
34 class GURL; 35 class GURL;
35 class SkBitmap; 36 class SkBitmap;
36 class TransportDIB; 37 class TransportDIB;
37 struct PP_HostResolver_Private_Hint; 38 struct PP_HostResolver_Private_Hint;
38 struct PP_NetAddress_Private; 39 struct PP_NetAddress_Private;
39 40
40 namespace base { 41 namespace base {
41 class MessageLoopProxy; 42 class MessageLoopProxy;
42 class Time; 43 class Time;
43 } 44 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const = 0; 164 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const = 0;
164 165
165 virtual TransportDIB* GetTransportDIB() const = 0; 166 virtual TransportDIB* GetTransportDIB() const = 0;
166 }; 167 };
167 168
168 class PlatformContext3D { 169 class PlatformContext3D {
169 public: 170 public:
170 virtual ~PlatformContext3D() {} 171 virtual ~PlatformContext3D() {}
171 172
172 // Initialize the context. 173 // Initialize the context.
173 virtual bool Init(const int32* attrib_list) = 0; 174 virtual bool Init(const int32* attrib_list,
175 CommandBufferProxy* share_buffer) = 0;
piman 2012/05/15 20:59:17 CommandBufferProxy here is a layering violation. I
174 176
175 // If the plugin instance is backed by an OpenGL, return its ID in the 177 // If the plugin instance is backed by an OpenGL, return its ID in the
176 // compositors namespace. Otherwise return 0. Returns 0 by default. 178 // compositors namespace. Otherwise return 0. Returns 0 by default.
177 virtual unsigned GetBackingTextureId() = 0; 179 virtual unsigned GetBackingTextureId() = 0;
178 180
179 // Returns true if the backing texture is always opaque. 181 // Returns true if the backing texture is always opaque.
180 virtual bool IsOpaque() = 0; 182 virtual bool IsOpaque() = 0;
181 183
182 // This call will return the address of the command buffer for this context 184 // 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 185 // that is constructed in Initialize() and is valid until this context is
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; 629 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0;
628 630
629 // Returns a Device ID 631 // Returns a Device ID
630 virtual std::string GetDeviceID() = 0; 632 virtual std::string GetDeviceID() = 0;
631 }; 633 };
632 634
633 } // namespace ppapi 635 } // namespace ppapi
634 } // namespace webkit 636 } // namespace webkit
635 637
636 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 638 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698