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

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

Issue 674543004: OptState owns program descriptor (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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
Index: src/gpu/gl/GrGpuGL.h
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h
index 24ab4ec14d6a941803e84c8e88b035b522151a2c..342f1e032ee603bdc898c49b8ba9da849824e25e 100644
--- a/src/gpu/gl/GrGpuGL.h
+++ b/src/gpu/gl/GrGpuGL.h
@@ -19,6 +19,7 @@
#include "GrGLVertexArray.h"
#include "GrGLVertexBuffer.h"
#include "GrGpu.h"
+#include "GrOptDrawState.h"
#include "SkTypes.h"
#ifdef SK_DEVELOPER
@@ -105,6 +106,11 @@ protected:
const SkIRect& srcRect,
const SkIPoint& dstPoint) SK_OVERRIDE;
+ virtual void buildKey(const GrOptDrawState* optState,
bsalomon 2014/10/23 18:10:29 This name seems vague. buildProgramDesc?
+ GrGpu::DrawType drawType,
+ const GrDeviceCoordTexture* dstCopy,
+ GrProgramDesc* desc) SK_OVERRIDE;
+
private:
// GrGpu overrides
virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE;
@@ -179,9 +185,7 @@ private:
~ProgramCache();
void abandon();
- GrGLProgram* getProgram(const GrOptDrawState&,
- const GrGLProgramDesc&,
- DrawType);
+ GrGLProgram* getProgram(const GrOptDrawState&, DrawType);
private:
enum {
@@ -197,7 +201,7 @@ private:
// binary search for entry matching desc. returns index into fEntries that matches desc or ~
// of the index of where it should be inserted.
- int search(const GrGLProgramDesc& desc) const;
+ int search(const GrProgramDesc& desc) const;
// sorted array of all the entries
Entry* fEntries[kMaxEntries];

Powered by Google App Engine
This is Rietveld 408576698