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

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

Issue 6047008: Added ppapi::Surface3D. This CL completes the new Pepper3D interface. The imp... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_PPAPI_PLUGIN_INSTANCE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class WebPluginContainer; 46 class WebPluginContainer;
47 } 47 }
48 48
49 namespace webkit { 49 namespace webkit {
50 namespace ppapi { 50 namespace ppapi {
51 51
52 class FullscreenContainer; 52 class FullscreenContainer;
53 class PluginDelegate; 53 class PluginDelegate;
54 class PluginModule; 54 class PluginModule;
55 class PPB_Graphics2D_Impl; 55 class PPB_Graphics2D_Impl;
56 class PPB_Context3D_Impl;
57 class PPB_ImageData_Impl; 56 class PPB_ImageData_Impl;
57 class PPB_Surface3D_Impl;
58 class PPB_URLLoader_Impl; 58 class PPB_URLLoader_Impl;
59 class Resource; 59 class Resource;
60 60
61 // Represents one time a plugin appears on one web page. 61 // Represents one time a plugin appears on one web page.
62 // 62 //
63 // Note: to get from a PP_Instance to a PluginInstance*, use the 63 // Note: to get from a PP_Instance to a PluginInstance*, use the
64 // ResourceTracker. 64 // ResourceTracker.
65 class PluginInstance : public base::RefCounted<PluginInstance> { 65 class PluginInstance : public base::RefCounted<PluginInstance> {
66 public: 66 public:
67 class Observer { 67 class Observer {
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting 218 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting
219 // at the specified destination rect. 219 // at the specified destination rect.
220 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas, 220 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas,
221 const gfx::Rect& dest_rect, int canvas_height); 221 const gfx::Rect& dest_rect, int canvas_height);
222 #endif // OS_MACOSX 222 #endif // OS_MACOSX
223 223
224 // Get the bound graphics context as a concrete 2D graphics context or returns 224 // Get the bound graphics context as a concrete 2D graphics context or returns
225 // null if the context is not 2D. 225 // null if the context is not 2D.
226 PPB_Graphics2D_Impl* bound_graphics_2d() const; 226 PPB_Graphics2D_Impl* bound_graphics_2d() const;
227 227
228 // Get the bound graphics context as a concrete 3D graphics context or returns 228 // Get the bound 3D graphics surface.
229 // null if the context is not 3D. 229 // Returns NULL if bound graphics is not a 3D surface.
230 PPB_Context3D_Impl* bound_graphics_3d() const; 230 PPB_Surface3D_Impl* bound_graphics_3d() const;
231 231
232 PluginDelegate* delegate_; 232 PluginDelegate* delegate_;
233 scoped_refptr<PluginModule> module_; 233 scoped_refptr<PluginModule> module_;
234 const PPP_Instance* instance_interface_; 234 const PPP_Instance* instance_interface_;
235 235
236 PP_Instance pp_instance_; 236 PP_Instance pp_instance_;
237 237
238 // NULL until we have been initialized. 238 // NULL until we have been initialized.
239 WebKit::WebPluginContainer* container_; 239 WebKit::WebPluginContainer* container_;
240 240
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // Non-owning pointers to all active observers. 311 // Non-owning pointers to all active observers.
312 ObserverList<Observer, false> observers_; 312 ObserverList<Observer, false> observers_;
313 313
314 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 314 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
315 }; 315 };
316 316
317 } // namespace ppapi 317 } // namespace ppapi
318 } // namespace webkit 318 } // namespace webkit
319 319
320 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 320 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698