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

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

Issue 544233002: "NULL !=" = NULL (Closed) Base URL: https://skia.googlesource.com/skia.git@are
Patch Set: rebase Created 6 years, 3 months 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
« no previous file with comments | « src/gpu/gl/GrGLInterface.cpp ('k') | src/gpu/gl/GrGLPathRendering.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 2014 Google Inc. 3 * Copyright 2014 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 8
9 #include "GrGLPathRange.h" 9 #include "GrGLPathRange.h"
10 #include "GrGLPath.h" 10 #include "GrGLPath.h"
(...skipping 21 matching lines...) Expand all
32 GrGLboolean isPath; 32 GrGLboolean isPath;
33 GR_GL_CALL_RET(gpu->glInterface(), isPath, IsPath(fBasePathID + index))) ; 33 GR_GL_CALL_RET(gpu->glInterface(), isPath, IsPath(fBasePathID + index))) ;
34 SkASSERT(GR_GL_FALSE == isPath); 34 SkASSERT(GR_GL_FALSE == isPath);
35 35
36 GrGLPath::InitPathObject(gpu, fBasePathID + index, skPath, fStroke); 36 GrGLPath::InitPathObject(gpu, fBasePathID + index, skPath, fStroke);
37 ++fNumDefinedPaths; 37 ++fNumDefinedPaths;
38 this->didChangeGpuMemorySize(); 38 this->didChangeGpuMemorySize();
39 } 39 }
40 40
41 void GrGLPathRange::onRelease() { 41 void GrGLPathRange::onRelease() {
42 SkASSERT(NULL != this->getGpu()); 42 SkASSERT(this->getGpu());
43 43
44 if (0 != fBasePathID && !this->isWrapped()) { 44 if (0 != fBasePathID && !this->isWrapped()) {
45 static_cast<GrGpuGL*>(this->getGpu())->glPathRendering()->deletePaths(fB asePathID, fSize); 45 static_cast<GrGpuGL*>(this->getGpu())->glPathRendering()->deletePaths(fB asePathID, fSize);
46 fBasePathID = 0; 46 fBasePathID = 0;
47 } 47 }
48 48
49 INHERITED::onRelease(); 49 INHERITED::onRelease();
50 } 50 }
51 51
52 void GrGLPathRange::onAbandon() { 52 void GrGLPathRange::onAbandon() {
53 fBasePathID = 0; 53 fBasePathID = 0;
54 54
55 INHERITED::onAbandon(); 55 INHERITED::onAbandon();
56 } 56 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLInterface.cpp ('k') | src/gpu/gl/GrGLPathRendering.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698