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

Side by Side Diff: src/gpu/gl/GrGLBufferImpl.h

Issue 1410333003: Move definitions of GrGL basic types (e.g. GrGLenum) to their own header. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 2 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 | « include/gpu/gl/GrGLTypes.h ('k') | src/gpu/gl/GrGLNameAllocator.h » ('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 2013 Google Inc. 2 * Copyright 2013 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 #ifndef GrGLBufferImpl_DEFINED 8 #ifndef GrGLBufferImpl_DEFINED
9 #define GrGLBufferImpl_DEFINED 9 #define GrGLBufferImpl_DEFINED
10 10
11 #include "SkTypes.h" 11 #include "SkTypes.h"
12 #include "gl/GrGLFunctions.h" 12 #include "gl/GrGLTypes.h"
13 13
14 class GrGLGpu; 14 class GrGLGpu;
15 15
16 /** 16 /**
17 * This class serves as the implementation of GrGL*Buffer classes. It was writte n to avoid code 17 * This class serves as the implementation of GrGL*Buffer classes. It was writte n to avoid code
18 * duplication in those classes. 18 * duplication in those classes.
19 */ 19 */
20 class GrGLBufferImpl : SkNoncopyable { 20 class GrGLBufferImpl : SkNoncopyable {
21 public: 21 public:
22 struct Desc { 22 struct Desc {
(...skipping 28 matching lines...) Expand all
51 GrGLenum fBufferType; // GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER 51 GrGLenum fBufferType; // GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER
52 void* fCPUData; 52 void* fCPUData;
53 void* fMapPtr; 53 void* fMapPtr;
54 size_t fGLSizeInBytes; // In certain cases we make the size of the GL buffer object 54 size_t fGLSizeInBytes; // In certain cases we make the size of the GL buffer object
55 // smaller or larger than the size in fDesc . 55 // smaller or larger than the size in fDesc .
56 56
57 typedef SkNoncopyable INHERITED; 57 typedef SkNoncopyable INHERITED;
58 }; 58 };
59 59
60 #endif 60 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/GrGLTypes.h ('k') | src/gpu/gl/GrGLNameAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698