aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-07 01:37:22 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-11-07 01:37:22 +0000
commit6d9adaec78f4c25c16c6f925f6c619955ae7f099 (patch)
tree78a700be287434da237e18f118270396a3abe032 /bench
parent979432ba2621b617f5e85a9ff48c6b6cd1504a0d (diff)
Add replacement APIs for createPlatformSurface: createPlatformTexture and createPlatformRenderTarget
git-svn-id: http://skia.googlecode.com/svn/trunk@2611 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench')
-rw-r--r--bench/benchmain.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index c58d5b1e5f..b809c99cd8 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -464,15 +464,13 @@ int main (int argc, char * const argv[]) {
reinterpret_cast<GrPlatform3DContext>(glctx.get()->gl());
context = GrContext::Create(kOpenGL_Shaders_GrEngine, ctx);
if (NULL != context) {
- GrPlatformSurfaceDesc desc;
- desc.reset();
+ GrPlatformRenderTargetDesc desc;
desc.fConfig = kRGBA_8888_GrPixelConfig;
desc.fWidth = contextWidth;
desc.fHeight = contextHeight;
desc.fStencilBits = 8;
- desc.fPlatformRenderTarget = glctx.get()->getFBOID();
- desc.fSurfaceType = kRenderTarget_GrPlatformSurfaceType;
- rt = static_cast<GrRenderTarget*>(context->createPlatformSurface(desc));
+ desc.fRenderTargetHandle = glctx.get()->getFBOID();
+ rt = context->createPlatformRenderTarget(desc);
if (NULL == rt) {
context->unref();
context = NULL;