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

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

Issue 820783005: More changes to bring together path / geo procs (Closed) Base URL: https://skia.googlesource.com/skia.git@lc1
Patch Set: dm fix Created 5 years, 11 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/gl/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLProgramDesc.h
diff --git a/src/gpu/gl/GrGLProgramDesc.h b/src/gpu/gl/GrGLProgramDesc.h
index 401ce222fbf54b4c28902d4f8d2fd6091cb235ed..edf139e3a87c51d00a4643d1dbb342dafa1b29e5 100644
--- a/src/gpu/gl/GrGLProgramDesc.h
+++ b/src/gpu/gl/GrGLProgramDesc.h
@@ -21,10 +21,7 @@ class GrGLGpu;
*/
class GrGLProgramDescBuilder {
public:
- struct GLKeyHeader : public GrProgramDesc::KeyHeader {
- SkBool8 fUseNvpr;
- };
-
+ typedef GrProgramDesc::KeyHeader KeyHeader;
// The key, stored in fKey, is composed of five parts(first 2 are defined in the key itself):
// 1. uint32_t for total key length.
// 2. uint32_t for a checksum.
@@ -34,7 +31,7 @@ public:
enum {
// Part 3.
kHeaderOffset = GrProgramDesc::kHeaderOffset,
- kHeaderSize = SkAlign4(sizeof(GLKeyHeader)),
+ kHeaderSize = SkAlign4(sizeof(KeyHeader)),
// Part 4.
// This is the offset into the backenend specific part of the key, which includes
// per-processor keys.
@@ -63,10 +60,6 @@ public:
GrGpu::DrawType,
GrGLGpu*,
GrProgramDesc*);
-
- static const GLKeyHeader& GetHeader(const GrProgramDesc& desc) {
- return *desc.atOffset<GLKeyHeader, kHeaderOffset>();
- }
};
#endif
« no previous file with comments | « src/gpu/gl/GrGLProgram.cpp ('k') | src/gpu/gl/GrGLProgramDesc.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698