Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: src/gpu/gl/SkGLContextHelper.cpp

Issue 98703002: Fix compilation with SK_ENABLE_INST_COUNT=1 (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/gl/GrGpuGL_program.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #include "gl/SkGLContextHelper.h" 8 #include "gl/SkGLContextHelper.h"
9 #include "GrGLUtil.h" 9 #include "GrGLUtil.h"
10 10
11 SK_DEFINE_INST_COUNT(SkGLContextHelper)
12
13 SkGLContextHelper::SkGLContextHelper() 11 SkGLContextHelper::SkGLContextHelper()
14 : fFBO(0) 12 : fFBO(0)
15 , fColorBufferID(0) 13 , fColorBufferID(0)
16 , fDepthStencilBufferID(0) 14 , fDepthStencilBufferID(0)
17 , fGL(NULL) { 15 , fGL(NULL) {
18 } 16 }
19 17
20 SkGLContextHelper::~SkGLContextHelper() { 18 SkGLContextHelper::~SkGLContextHelper() {
21 19
22 if (fGL) { 20 if (fGL) {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 fGL->unref(); 129 fGL->unref();
132 fGL = NULL; 130 fGL = NULL;
133 this->destroyGLContext(); 131 this->destroyGLContext();
134 return false; 132 return false;
135 } else { 133 } else {
136 return true; 134 return true;
137 } 135 }
138 } 136 }
139 return false; 137 return false;
140 } 138 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGpuGL_program.cpp ('k') | src/gpu/gl/debug/GrGLCreateDebugInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698