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

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

Issue 1316233002: Style Change: NULL->nullptr (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-27 (Thursday) 10:25:06 EDT Created 5 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/GrGLVertexArray.cpp ('k') | src/gpu/gl/SkGLContext.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 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "GrGLVertexBuffer.h" 8 #include "GrGLVertexBuffer.h"
9 #include "GrGLGpu.h" 9 #include "GrGLGpu.h"
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 void GrGLVertexBuffer::onAbandon() { 25 void GrGLVertexBuffer::onAbandon() {
26 fImpl.abandon(); 26 fImpl.abandon();
27 INHERITED::onAbandon(); 27 INHERITED::onAbandon();
28 } 28 }
29 29
30 void* GrGLVertexBuffer::onMap() { 30 void* GrGLVertexBuffer::onMap() {
31 if (!this->wasDestroyed()) { 31 if (!this->wasDestroyed()) {
32 return fImpl.map(this->getGpuGL()); 32 return fImpl.map(this->getGpuGL());
33 } else { 33 } else {
34 return NULL; 34 return nullptr;
35 } 35 }
36 } 36 }
37 37
38 void GrGLVertexBuffer::onUnmap() { 38 void GrGLVertexBuffer::onUnmap() {
39 if (!this->wasDestroyed()) { 39 if (!this->wasDestroyed()) {
40 fImpl.unmap(this->getGpuGL()); 40 fImpl.unmap(this->getGpuGL());
41 } 41 }
42 } 42 }
43 43
44 bool GrGLVertexBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) { 44 bool GrGLVertexBuffer::onUpdateData(const void* src, size_t srcSizeInBytes) {
45 if (!this->wasDestroyed()) { 45 if (!this->wasDestroyed()) {
46 return fImpl.updateData(this->getGpuGL(), src, srcSizeInBytes); 46 return fImpl.updateData(this->getGpuGL(), src, srcSizeInBytes);
47 } else { 47 } else {
48 return false; 48 return false;
49 } 49 }
50 } 50 }
OLDNEW
« no previous file with comments | « src/gpu/gl/GrGLVertexArray.cpp ('k') | src/gpu/gl/SkGLContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698