diff options
| author | Derek Sollenberger <djsollen@google.com> | 2009-08-10 10:50:59 -0400 |
|---|---|---|
| committer | Derek Sollenberger <djsollen@google.com> | 2009-08-10 10:50:59 -0400 |
| commit | 5ad138fef856a344d03803e9357b776fa7d86614 (patch) | |
| tree | b3e0786ecbf2109398c284a37499522409bf42b2 /samples | |
| parent | b1a1abffa86574aab96ae7845a3bd2288baf9f12 (diff) | |
| download | android_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.cpp | 2 | ||||
| -rw-r--r-- | samples/BrowserPlugin/jni/paint/PaintPlugin.cpp | 2 |
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); |
