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

Unified Diff: plugin/idl/pack.idl

Issue 150058: expose bitmap in js. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « plugin/idl/bitmap.idl ('k') | plugin/idl/texture.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/idl/pack.idl
===================================================================
--- plugin/idl/pack.idl (revision 20557)
+++ plugin/idl/pack.idl (working copy)
@@ -116,6 +116,7 @@
Note: You may omit the 'o3d.'.
\param type_name name of Class to create. Valid type names are:
+ \li o3d.Bitmap
\li o3d.Canvas
\li o3d.CanvasLinearGradient
\li o3d.CanvasPaint
@@ -306,6 +307,25 @@
%]
Texture? CreateTextureFromRawData(RawData raw_data,
bool generate_mips);
+
+ %[
+ Create a new Bitmap object from RawData.
+
+ \param raw_data contains the bitmap data in one of the know formats.
+ \return the new bitmap object.
+ %]
+ Bitmap? CreateBitmapFromRawData(RawData raw_data);
+
+ %[
+ Create a new Bitmap object of the specified size and format and
+ reserves the necessary resources for it.
+
+ \param width The width of the bitmap in pixel.
+ \param height The height of the bitmap in pixel.
+ \param format The format of the bitmap.
+ \return the new bitmap obejct.
+ %]
+ Bitmap? CreateBitmap(int width, int height, Texture::Format format);
}; // Pack
} // namespace o3d
« no previous file with comments | « plugin/idl/bitmap.idl ('k') | plugin/idl/texture.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698