summaryrefslogtreecommitdiffstats
path: root/o3d/core/cross/param_test.cc
diff options
context:
space:
mode:
authorgman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 04:53:24 +0000
committergman@google.com <gman@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-06 04:53:24 +0000
commit132899b905b0f1794d7e82e28f9fe77ca6a08282 (patch)
tree47af391191ac78d3b4e02533f74e3575970cebcc /o3d/core/cross/param_test.cc
parent22e037073118aaf90549410b32d66885d39b78a9 (diff)
downloadchromium_src-132899b905b0f1794d7e82e28f9fe77ca6a08282.zip
chromium_src-132899b905b0f1794d7e82e28f9fe77ca6a08282.tar.gz
chromium_src-132899b905b0f1794d7e82e28f9fe77ca6a08282.tar.bz2
A step in exposing Bitmap to JavaScript.
The plan is to make pack.createBitmapFromRawData return an array of bitmaps. 1 bitmap if it's a standard 2d image 6 bitmaps if it's a cubemap N bitmaps if it's a volume map. The bitmaps will have a semantic so you can look at them and tell they were from a volumemap, a cubemap or a 2d image. On the way I'm attempting to clean up the code. Moving stuff out of Bitmap the did not belong there and Refactoring Bitmap so there are less If Format = stuff. Review URL: http://codereview.chromium.org/164034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22583 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/core/cross/param_test.cc')
-rw-r--r--o3d/core/cross/param_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/o3d/core/cross/param_test.cc b/o3d/core/cross/param_test.cc
index 3044acd..433c3d3 100644
--- a/o3d/core/cross/param_test.cc
+++ b/o3d/core/cross/param_test.cc
@@ -59,6 +59,12 @@ class TestTexture : public Texture {
false) {}
void* GetTextureHandle() const { return NULL; }
virtual const RGBASwizzleIndices& GetABGR32FSwizzleIndices();
+ virtual void SetFromBitmap(const Bitmap& bitmap) {
+ DCHECK(false);
+ }
+ virtual void GenerateMips(int source_level, int last_target_level) {
+ DCHECK(false);
+ }
};
const Texture::RGBASwizzleIndices& TestTexture::GetABGR32FSwizzleIndices() {