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

Side by Side Diff: src/gpu/gl/debug/GrBufferObj.h

Issue 270253006: Fix int conversion warning (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | 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 2012 Google Inc. 3 * Copyright 2012 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 #ifndef GrBufferObj_DEFINED 9 #ifndef GrBufferObj_DEFINED
10 #define GrBufferObj_DEFINED 10 #define GrBufferObj_DEFINED
(...skipping 23 matching lines...) Expand all
34 GrAlwaysAssert(!fMapped); 34 GrAlwaysAssert(!fMapped);
35 } 35 }
36 36
37 void setMapped(GrGLintptr offset, GrGLsizeiptr length) { 37 void setMapped(GrGLintptr offset, GrGLsizeiptr length) {
38 fMapped = true; 38 fMapped = true;
39 fMappedOffset = offset; 39 fMappedOffset = offset;
40 fMappedLength = length; 40 fMappedLength = length;
41 } 41 }
42 void resetMapped() { fMapped = false; } 42 void resetMapped() { fMapped = false; }
43 bool getMapped() const { return fMapped; } 43 bool getMapped() const { return fMapped; }
44 GrGLsizei getMappedOffset() const { return fMappedOffset; } 44 GrGLintptr getMappedOffset() const { return fMappedOffset; }
45 GrGLsizei getMappedLength() const { return fMappedLength; } 45 GrGLsizeiptr getMappedLength() const { return fMappedLength; }
46 46
47 void setBound() { fBound = true; } 47 void setBound() { fBound = true; }
48 void resetBound() { fBound = false; } 48 void resetBound() { fBound = false; }
49 bool getBound() const { return fBound; } 49 bool getBound() const { return fBound; }
50 50
51 void allocate(GrGLsizeiptr size, const GrGLchar *dataPtr); 51 void allocate(GrGLsizeiptr size, const GrGLchar *dataPtr);
52 GrGLsizeiptr getSize() const { return fSize; } 52 GrGLsizeiptr getSize() const { return fSize; }
53 GrGLchar *getDataPtr() { return fDataPtr; } 53 GrGLchar *getDataPtr() { return fDataPtr; }
54 54
55 void setUsage(GrGLint usage) { fUsage = usage; } 55 void setUsage(GrGLint usage) { fUsage = usage; }
(...skipping 11 matching lines...) Expand all
67 bool fBound; // is the buffer object bound via "glBindBuffer" ? 67 bool fBound; // is the buffer object bound via "glBindBuffer" ?
68 GrGLsizeiptr fSize; // size in bytes 68 GrGLsizeiptr fSize; // size in bytes
69 GrGLint fUsage; // one of: GL_STREAM_DRAW, 69 GrGLint fUsage; // one of: GL_STREAM_DRAW,
70 // GL_STATIC_DRAW, 70 // GL_STATIC_DRAW,
71 // GL_DYNAMIC_DRAW 71 // GL_DYNAMIC_DRAW
72 72
73 typedef GrFakeRefObj INHERITED; 73 typedef GrFakeRefObj INHERITED;
74 }; 74 };
75 75
76 #endif // GrBufferObj_DEFINED 76 #endif // GrBufferObj_DEFINED
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698