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

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

Issue 2143333002: Add resource provider flag to avoid client-side buffers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add resource provider flag to avoid client-side buffers Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/gpu/GrResourceProvider.cpp ('k') | src/gpu/gl/GrGLBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLBuffer.h
diff --git a/src/gpu/gl/GrGLBuffer.h b/src/gpu/gl/GrGLBuffer.h
index 84d05be382b74e1641e0e4c5da231362c3a56880..6a90d0334c79b78b75b484f879549baa9a16caf9 100644
--- a/src/gpu/gl/GrGLBuffer.h
+++ b/src/gpu/gl/GrGLBuffer.h
@@ -25,7 +25,6 @@ public:
}
GrGLuint bufferID() const { return fBufferID; }
- size_t baseOffset() const { return reinterpret_cast<size_t>(fCPUData); }
/**
* Returns the actual size of the underlying GL buffer object. In certain cases we may make this
@@ -37,8 +36,7 @@ public:
bool hasAttachedToTexture() const { return fHasAttachedToTexture; }
protected:
- GrGLBuffer(GrGLGpu*, size_t size, GrBufferType intendedType, GrAccessPattern, bool cpuBacked,
- const void* data);
+ GrGLBuffer(GrGLGpu*, size_t size, GrBufferType intendedType, GrAccessPattern, const void* data);
void onAbandon() override;
void onRelease() override;
@@ -57,10 +55,8 @@ private:
void validate() const;
#endif
- void* fCPUData;
GrBufferType fIntendedType;
GrGLuint fBufferID;
- size_t fSizeInBytes;
GrGLenum fUsage;
size_t fGLSizeInBytes;
bool fHasAttachedToTexture;
« no previous file with comments | « src/gpu/GrResourceProvider.cpp ('k') | src/gpu/gl/GrGLBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698