aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/win
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-24 20:47:18 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-24 20:47:18 +0000
commit82502e2e3966a9b0e48665f20154eaacd2a452b3 (patch)
treef7af470b3cfa77afa34e7c85cd4d01c5c221694d /src/views/win
parentc5fae9e1edb64802c446a8ebddf121ea3572c431 (diff)
Fix SampleApp ANGLE mode.
Review URL: https://codereview.appspot.com/7206052 git-svn-id: http://skia.googlecode.com/svn/trunk@7377 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/views/win')
-rw-r--r--src/views/win/SkOSWindow_win.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp
index 9267a9583e..f2d63117d4 100644
--- a/src/views/win/SkOSWindow_win.cpp
+++ b/src/views/win/SkOSWindow_win.cpp
@@ -538,7 +538,7 @@ bool SkOSWindow::attachANGLE(int msaaSampleCount) {
if (false == bResult) {
return false;
}
- const GrGLInterface* intf = GrGLCreateANGLEInterface();
+ SkAutoTUnref<const GrGLInterface> intf(GrGLCreateANGLEInterface());
if (intf) {
ANGLE_GL_CALL(intf, ClearStencil(0));
@@ -548,7 +548,7 @@ bool SkOSWindow::attachANGLE(int msaaSampleCount) {
}
}
if (eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) {
- const GrGLInterface* intf = GrGLCreateANGLEInterface();
+ SkAutoTUnref<const GrGLInterface> intf(GrGLCreateANGLEInterface());
if (intf ) {
ANGLE_GL_CALL(intf, Viewport(0, 0, SkScalarRound(this->width()),
@@ -573,7 +573,7 @@ void SkOSWindow::detachANGLE() {
}
void SkOSWindow::presentANGLE() {
- const GrGLInterface* intf = GrGLCreateANGLEInterface();
+ SkAutoTUnref<const GrGLInterface> intf(GrGLCreateANGLEInterface());
if (intf) {
ANGLE_GL_CALL(intf, Flush());