aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-25 18:43:28 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-25 18:43:28 +0000
commit16e3ddea6a80972aced04b21b1d66377fa95e7c7 (patch)
tree2dffbddbfa9f09ac89ca0ebbb5f79e77d5516c78 /bench
parentb5a5a9dc755a1655007ca05b2cc279773f3623ba (diff)
Platform/Engine -> Backend
createPlatform -> wrapBackend R=robertphillips@google.com Review URL: https://codereview.appspot.com/6785044 git-svn-id: http://skia.googlecode.com/svn/trunk@6123 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'bench')
-rw-r--r--bench/benchmain.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/bench/benchmain.cpp b/bench/benchmain.cpp
index eb8c4eda5e..6f339529f2 100644
--- a/bench/benchmain.cpp
+++ b/bench/benchmain.cpp
@@ -203,17 +203,16 @@ public:
if (!glCtx->init(width, height)) {
return false;
}
- GrPlatform3DContext ctx =
- reinterpret_cast<GrPlatform3DContext>(glCtx->gl());
- grCtx = GrContext::Create(kOpenGL_Shaders_GrEngine, ctx);
+ GrBackendContext ctx = reinterpret_cast<GrBackendContext>(glCtx->gl());
+ grCtx = GrContext::Create(kOpenGL_GrBackend, ctx);
if (NULL != grCtx) {
- GrPlatformRenderTargetDesc desc;
+ GrBackendRenderTargetDesc desc;
desc.fConfig = kSkia8888_PM_GrPixelConfig;
desc.fWidth = width;
desc.fHeight = height;
desc.fStencilBits = 8;
desc.fRenderTargetHandle = glCtx->getFBOID();
- GrRenderTarget* rt = grCtx->createPlatformRenderTarget(desc);
+ GrRenderTarget* rt = grCtx->wrapBackendRenderTarget(desc);
if (NULL == rt) {
grCtx->unref();
return false;