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

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

Issue 7530010: Added PPB_Graphics3D_Dev::Resize to let plugins resize the backing surface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_thunk.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_graphics_3d_thunk.cc ('k') | webkit/plugins/ppapi/ppb_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698