diff options
author | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 22:25:08 +0000 |
---|---|---|
committer | gman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 22:25:08 +0000 |
commit | 523b2523c1f2cb22f56be9cc52fb734370992387 (patch) | |
tree | ede3f93c4e118e840778e39b5633d6bfc7058ab3 /o3d/plugin/idl/file_request.idl | |
parent | 9521c61f5588480d8cd6134144db7137630f2529 (diff) | |
download | chromium_src-523b2523c1f2cb22f56be9cc52fb734370992387.zip chromium_src-523b2523c1f2cb22f56be9cc52fb734370992387.tar.gz chromium_src-523b2523c1f2cb22f56be9cc52fb734370992387.tar.bz2 |
Add RawData request in preparation for manual loading of
Bitmaps and being able to flip them, scale them, etc...
Basically this just makes it possible to download a RawData
directly which you can then pass you'll be able to pass to
pack->CreateBitmapFromRawData.
Some design comments:
I used SetFromFile instead of making a different constructor
since it seemed wrong to do file IO in a constructor. Given
that SetFromFile is private I don't think this is a problem
since you can't call it directly.
Also, I thought about loading the file first and then calling
the original constructor but it seemed like a waste to load
the file into memory, then copy it to a new buffer when I could
just load it directly.
Finally I made it take a String instead of a FilePath because
it meant other places had to do less work.
Review URL: http://codereview.chromium.org/149784
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/plugin/idl/file_request.idl')
-rw-r--r-- | o3d/plugin/idl/file_request.idl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/o3d/plugin/idl/file_request.idl b/o3d/plugin/idl/file_request.idl index 5e931ce..5b1c9a3 100644 --- a/o3d/plugin/idl/file_request.idl +++ b/o3d/plugin/idl/file_request.idl @@ -76,6 +76,13 @@ namespace o3d { texture. %] [getter=texture] Texture? texture; + + %[ + On completion of successful RawData file loads, this holds the loaded + RawData. + %] + [getter=data] RawData? data; + %[ Whether or not to generate mip-maps on textures that are loaded (default: true). Mip-maps are not generated for DXTC textures. DDS files can contain |