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

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

Issue 1496843003: Revert of Add transfer buffer support. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « src/gpu/GrTransferBuffer.h ('k') | src/gpu/gl/GrGLBufferImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLBufferImpl.h
diff --git a/src/gpu/gl/GrGLBufferImpl.h b/src/gpu/gl/GrGLBufferImpl.h
index ef7ce9554106ff15079757562d25d99ef02428ad..15d2f48efe44ea82d2d1d48907585666cd2e34cb 100644
--- a/src/gpu/gl/GrGLBufferImpl.h
+++ b/src/gpu/gl/GrGLBufferImpl.h
@@ -19,20 +19,10 @@
*/
class GrGLBufferImpl : SkNoncopyable {
public:
- enum Usage {
- 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;
- Usage fUsage;
+ bool fDynamic;
};
GrGLBufferImpl(GrGLGpu*, const Desc&, GrGLenum bufferType);
« no previous file with comments | « src/gpu/GrTransferBuffer.h ('k') | src/gpu/gl/GrGLBufferImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698