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

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

Issue 7409003: Binding Graphics3D with Instance and OpenGLES2 interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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_context_3d_api.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.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_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 <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 namespace webkit { 63 namespace webkit {
64 namespace ppapi { 64 namespace ppapi {
65 65
66 class FullscreenContainer; 66 class FullscreenContainer;
67 class MessageChannel; 67 class MessageChannel;
68 class ObjectVar; 68 class ObjectVar;
69 class PluginDelegate; 69 class PluginDelegate;
70 class PluginModule; 70 class PluginModule;
71 class PluginObject; 71 class PluginObject;
72 class PPB_Graphics2D_Impl; 72 class PPB_Graphics2D_Impl;
73 class PPB_Graphics3D_Impl;
73 class PPB_ImageData_Impl; 74 class PPB_ImageData_Impl;
74 class PPB_Surface3D_Impl; 75 class PPB_Surface3D_Impl;
75 class PPB_URLLoader_Impl; 76 class PPB_URLLoader_Impl;
76 class PPB_URLRequestInfo_Impl; 77 class PPB_URLRequestInfo_Impl;
77 class Resource; 78 class Resource;
78 79
79 // Represents one time a plugin appears on one web page. 80 // Represents one time a plugin appears on one web page.
80 // 81 //
81 // Note: to get from a PP_Instance to a PluginInstance*, use the 82 // Note: to get from a PP_Instance to a PluginInstance*, use the
82 // ResourceTracker. 83 // ResourceTracker.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 WebKit::WebCanvas* canvas); 324 WebKit::WebCanvas* canvas);
324 #elif defined(OS_MACOSX) && !defined(USE_SKIA) 325 #elif defined(OS_MACOSX) && !defined(USE_SKIA)
325 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting 326 // Draws the given kARGB_8888_Config bitmap to the specified canvas starting
326 // at the specified destination rect. 327 // at the specified destination rect.
327 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas, 328 void DrawSkBitmapToCanvas(const SkBitmap& bitmap, WebKit::WebCanvas* canvas,
328 const gfx::Rect& dest_rect, int canvas_height); 329 const gfx::Rect& dest_rect, int canvas_height);
329 #endif // OS_MACOSX 330 #endif // OS_MACOSX
330 331
331 // Get the bound graphics context as a concrete 2D graphics context or returns 332 // Get the bound graphics context as a concrete 2D graphics context or returns
332 // null if the context is not 2D. 333 // null if the context is not 2D.
333 PPB_Graphics2D_Impl* bound_graphics_2d() const; 334 PPB_Graphics2D_Impl* GetBoundGraphics2D() const;
334 335
336 // Get the bound 3D graphics context.
337 // Returns NULL if bound graphics is not a 3D context.
338 PPB_Graphics3D_Impl* GetBoundGraphics3D() const;
339
340 // DEPRECATED: PPB_Surface3D_Impl is being replaced with PPB_Graphics3D_Impl.
335 // Get the bound 3D graphics surface. 341 // Get the bound 3D graphics surface.
336 // Returns NULL if bound graphics is not a 3D surface. 342 // Returns NULL if bound graphics is not a 3D surface.
337 PPB_Surface3D_Impl* bound_graphics_3d() const; 343 PPB_Surface3D_Impl* GetBoundSurface3D() const;
338 344
339 // Sets the id of the texture that the plugin draws to. The id is in the 345 // Sets the id of the texture that the plugin draws to. The id is in the
340 // compositor space so it can use it to composite with rest of the page. 346 // compositor space so it can use it to composite with rest of the page.
341 // A value of zero indicates the plugin is not backed by a texture. 347 // A value of zero indicates the plugin is not backed by a texture.
342 void setBackingTextureId(unsigned int id); 348 void setBackingTextureId(unsigned int id);
343 349
344 // Internal helper function for PrintPage(). 350 // Internal helper function for PrintPage().
345 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges, 351 bool PrintPageHelper(PP_PrintPageNumberRange_Dev* page_ranges,
346 int num_ranges, 352 int num_ranges,
347 WebKit::WebCanvas* canvas); 353 WebKit::WebCanvas* canvas);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 uint32_t input_event_mask_; 501 uint32_t input_event_mask_;
496 uint32_t filtered_input_event_mask_; 502 uint32_t filtered_input_event_mask_;
497 503
498 DISALLOW_COPY_AND_ASSIGN(PluginInstance); 504 DISALLOW_COPY_AND_ASSIGN(PluginInstance);
499 }; 505 };
500 506
501 } // namespace ppapi 507 } // namespace ppapi
502 } // namespace webkit 508 } // namespace webkit
503 509
504 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_ 510 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_PLUGIN_INSTANCE_H_
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_context_3d_api.h ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698