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

Unified Diff: src/gpu/gl/GrGLBufferImpl.h

Issue 1490473003: Add transfer buffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Some clean up Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/gpu/gl/GrGLBufferImpl.h
diff --git a/src/gpu/gl/GrGLBufferImpl.h b/src/gpu/gl/GrGLBufferImpl.h
index 15d2f48efe44ea82d2d1d48907585666cd2e34cb..ef7ce9554106ff15079757562d25d99ef02428ad 100644
--- a/src/gpu/gl/GrGLBufferImpl.h
+++ b/src/gpu/gl/GrGLBufferImpl.h
@@ -19,10 +19,20 @@ class GrGLGpu;
*/
class GrGLBufferImpl : SkNoncopyable {
public:
+ enum Usage {
bsalomon 2015/12/02 16:38:31 Like this change
jvanverth1 2015/12/02 18:05:07 Acknowledged.
+ kStaticDraw_Usage = 0,
+ kDynamicDraw_Usage,
+ kStreamDraw_Usage,
+ kStreamRead_Usage,
+
+ kLast_Usage = kStreamRead_Usage
+ };
+ static const int kUsageCount = kLast_Usage + 1;
+
struct Desc {
GrGLuint fID; // set to 0 to indicate buffer is CPU-backed and not a VBO.
size_t fSizeInBytes;
- bool fDynamic;
+ Usage fUsage;
};
GrGLBufferImpl(GrGLGpu*, const Desc&, GrGLenum bufferType);

Powered by Google App Engine
This is Rietveld 408576698