summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2009-08-10 10:50:59 -0400
committerDerek Sollenberger <djsollen@google.com>2009-08-10 10:50:59 -0400
commit5ad138fef856a344d03803e9357b776fa7d86614 (patch)
treeb3e0786ecbf2109398c284a37499522409bf42b2 /samples
parentb1a1abffa86574aab96ae7845a3bd2288baf9f12 (diff)
downloadandroid_development-5ad138fef856a344d03803e9357b776fa7d86614.tar.gz
android_development-5ad138fef856a344d03803e9357b776fa7d86614.tar.bz2
android_development-5ad138fef856a344d03803e9357b776fa7d86614.zip
allow surfaces to specify the bitmap's pixel format
Diffstat (limited to 'samples')
-rw-r--r--samples/BrowserPlugin/jni/background/BackgroundPlugin.cpp2
-rw-r--r--samples/BrowserPlugin/jni/paint/PaintPlugin.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/samples/BrowserPlugin/jni/background/BackgroundPlugin.cpp b/samples/BrowserPlugin/jni/background/BackgroundPlugin.cpp
index 548f0e58d..ce92cbb19 100644
--- a/samples/BrowserPlugin/jni/background/BackgroundPlugin.cpp
+++ b/samples/BrowserPlugin/jni/background/BackgroundPlugin.cpp
@@ -52,7 +52,7 @@ BackgroundPlugin::BackgroundPlugin(NPP inst) : SubPlugin(inst) {
// initialize the drawing surface
m_surfaceReady = false;
- m_surface = gSurfaceI.newSurface(inst, kRGBA_ANPSurfaceType, false);
+ m_surface = gSurfaceI.newRasterSurface(inst, kRGB_565_ANPBitmapFormat, false);
if(!m_surface)
gLogI.log(inst, kError_ANPLogType, "----%p Unable to create RGBA surface", inst);
diff --git a/samples/BrowserPlugin/jni/paint/PaintPlugin.cpp b/samples/BrowserPlugin/jni/paint/PaintPlugin.cpp
index 62cb079bb..a34870fb7 100644
--- a/samples/BrowserPlugin/jni/paint/PaintPlugin.cpp
+++ b/samples/BrowserPlugin/jni/paint/PaintPlugin.cpp
@@ -52,7 +52,7 @@ PaintPlugin::PaintPlugin(NPP inst) : SubPlugin(inst) {
// initialize the drawing surface
m_surfaceReady = false;
- m_surface = gSurfaceI.newSurface(inst, kRGBA_ANPSurfaceType, true);
+ m_surface = gSurfaceI.newRasterSurface(inst, kRGBA_8888_ANPBitmapFormat, true);
if(!m_surface)
gLogI.log(inst, kError_ANPLogType, "----%p Unable to create RGBA surface", inst);