diff options
author | 2014-10-28 17:59:26 -0700 | |
---|---|---|
committer | 2014-10-28 17:59:26 -0700 | |
commit | 79f8faeea2692d2948c0f634e956d1e7fc8333e0 (patch) | |
tree | a4de457cd96b8b8ada35fa277e79fd7fb47f2e4b /src/gpu/gl/GrGpuGL.h | |
parent | 7a5693178414e133426f99b45d703ee2b0078af4 (diff) |
OptState owns program descriptor
BUG=skia:
Review URL: https://codereview.chromium.org/674543004
Diffstat (limited to 'src/gpu/gl/GrGpuGL.h')
-rw-r--r-- | src/gpu/gl/GrGpuGL.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h index 808f97a21c..46d970069b 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,12 @@ protected: const SkIRect& srcRect, const SkIPoint& dstPoint) SK_OVERRIDE; + virtual void buildProgramDesc(const GrOptDrawState&, + const GrProgramDesc::DescInfo&, + GrGpu::DrawType, + const GrDeviceCoordTexture* dstCopy, + GrProgramDesc*) SK_OVERRIDE; + private: // GrGpu overrides virtual void onResetContext(uint32_t resetBits) SK_OVERRIDE; @@ -181,9 +188,7 @@ private: ~ProgramCache(); void abandon(); - GrGLProgram* getProgram(const GrOptDrawState&, - const GrGLProgramDesc&, - DrawType); + GrGLProgram* getProgram(const GrOptDrawState&, DrawType); private: enum { @@ -199,7 +204,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]; |