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

Unified Diff: plugin/idl/texture.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/pack.idl ('k') | plugin/idl_list.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: plugin/idl/texture.idl
===================================================================
--- plugin/idl/texture.idl (revision 20557)
+++ plugin/idl/texture.idl (working copy)
@@ -186,7 +186,26 @@
int source_width,
float[] values);
+ %[
+ Copy pixels from source bitmap to certain mip level.
+ Scales if the width and height of source and dest do not match.
+ \param source_img source bitmap which would be drawn.
+ \param source_x x-coordinate of the starting pixel in the source image.
+ \param source_y y-coordinate of the starting pixel in the source image.
+ \param source_width width of the source image to draw.
+ \param source_height Height of the source image to draw.
+ \param dest_x x-coordinate of the starting pixel in the dest image.
+ \param dest_y y-coordinate of the starting pixel in the dest image.
+ \param dest_width width of the dest image.
+ \param dest_height height of the dest image.
+ \param dest_mip on which mip level the sourceImg would be drawn.
+ %]
+ void DrawImage(Bitmap source_img, int source_x, int source_y,
+ int source_width, int source_height,
+ int dest_x, int dest_y,
+ int dest_width, int dest_height, int dest_mip);
+
[verbatim=cpp_glue] %{
void SetRectCheck(o3d::Texture2D* self,
int level,
@@ -426,6 +445,28 @@
\return The RenderSurface object.
%]
RenderSurface? GetRenderSurface(CubeFace face, int mip_level, Pack pack);
+
+ %[
+ Copy pixels from source bitmap to certain mip level.
+ Scales if the width and height of source and dest do not match.
+
+ \param source_img source bitmap which would be drawn.
+ \param source_x x-coordinate of the starting pixel in the source image.
+ \param source_y y-coordinate of the starting pixel in the source image.
+ \param source_width width of the source image to draw.
+ \param source_height Height of the source image to draw.
+ \param dest_x x-coordinate of the starting pixel in the dest image.
+ \param dest_y y-coordinate of the starting pixel in the dest image.
+ \param dest_width width of the dest image.
+ \param dest_height height of the dest image.
+ \param face on which face the sourceImg would be drawn.
+ \param dest_mip on which mip level the sourceImg would be drawn.
+ %]
+ void DrawImage(Bitmap source_img, int source_x, int source_y,
+ int source_width, int source_height,
+ int dest_x, int dest_y,
+ int dest_width, int dest_height,
+ CubeFace face, int dest_mip);
}; // TextureCUBE
} // namespace o3d
« no previous file with comments | « plugin/idl/pack.idl ('k') | plugin/idl_list.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698