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

Unified Diff: include/gpu/GrBufferAccess.h

Issue 2036953002: Abandon offset support with texel buffers (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrBufferAccess.h
diff --git a/include/gpu/GrBufferAccess.h b/include/gpu/GrBufferAccess.h
index 183d43d670393196f5d155dbcf3205cf1926c2b6..a5d8f0a684b637abb5dd92a2b3911dcc860e1080 100644
--- a/include/gpu/GrBufferAccess.h
+++ b/include/gpu/GrBufferAccess.h
@@ -20,24 +20,21 @@ public:
/**
* Must be initialized before adding to a GrProcessor's buffer access list.
*/
- void reset(intptr_t offsetInBytes, GrPixelConfig texelConfig, GrBuffer* buffer,
+ void reset(GrPixelConfig texelConfig, GrBuffer* buffer,
GrShaderFlags visibility = kFragment_GrShaderFlag) {
- fOffsetInBytes = offsetInBytes;
fTexelConfig = texelConfig;
fBuffer.set(SkRef(buffer), kRead_GrIOType);
fVisibility = visibility;
}
bool operator==(const GrBufferAccess& that) const {
- return fOffsetInBytes == that.fOffsetInBytes &&
- fTexelConfig == that.fTexelConfig &&
+ return fTexelConfig == that.fTexelConfig &&
this->buffer() == that.buffer() &&
fVisibility == that.fVisibility;
}
bool operator!=(const GrBufferAccess& that) const { return !(*this == that); }
- intptr_t offsetInBytes() const { return fOffsetInBytes; }
GrPixelConfig texelConfig() const { return fTexelConfig; }
GrBuffer* buffer() const { return fBuffer.get(); }
GrShaderFlags visibility() const { return fVisibility; }
@@ -48,7 +45,6 @@ public:
const GrGpuResourceRef* getProgramBuffer() const { return &fBuffer;}
private:
- intptr_t fOffsetInBytes;
GrPixelConfig fTexelConfig;
GrTGpuResourceRef<GrBuffer> fBuffer;
GrShaderFlags fVisibility;
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698