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

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

Issue 858343002: Rename GrOptDrawState to GrPipeline and GrDrawState to GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: more nits 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/GrGLGpuProgramCache.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLProgram.h
diff --git a/src/gpu/gl/GrGLProgram.h b/src/gpu/gl/GrGLProgram.h
index cce6c2a4d32882489d2d3bcf9c8bcc1882daa6f9..e49fbabf86e5c28c3d465deec8b44be0a92a1201 100644
--- a/src/gpu/gl/GrGLProgram.h
+++ b/src/gpu/gl/GrGLProgram.h
@@ -10,7 +10,6 @@
#define GrGLProgram_DEFINED
#include "builders/GrGLProgramBuilder.h"
-#include "GrDrawState.h"
#include "GrGLContext.h"
#include "GrGLProgramDesc.h"
#include "GrGLSL.h"
@@ -23,6 +22,7 @@
class GrGLProcessor;
class GrGLInstalledProcessors;
class GrGLProgramBuilder;
+class GrPipeline;
/**
* This class manages a GPU program and records per-program information.
@@ -95,7 +95,7 @@ public:
* GrGLGpu object to bind the textures required by the GrGLProcessors. The color and coverage
* stages come from GrGLProgramDesc::Build().
*/
- void setData(const GrPrimitiveProcessor&, const GrOptDrawState&, const GrBatchTracker&);
+ void setData(const GrPrimitiveProcessor&, const GrPipeline&, const GrBatchTracker&);
protected:
typedef GrGLProgramDataManager::UniformHandle UniformHandle;
@@ -116,7 +116,7 @@ protected:
void initSamplers(Proc*, int* texUnitIdx);
// A templated helper to loop over effects, set the transforms(via subclass) and bind textures
- void setFragmentData(const GrPrimitiveProcessor&, const GrOptDrawState&);
+ void setFragmentData(const GrPrimitiveProcessor&, const GrPipeline&);
virtual void setTransformData(const GrPrimitiveProcessor&,
const GrPendingFragmentStage&,
int index,
@@ -131,8 +131,8 @@ protected:
virtual void didSetData() {}
// Helper for setData() that sets the view matrix and loads the render target height uniform
- void setRenderTargetState(const GrPrimitiveProcessor&, const GrOptDrawState&);
- virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrOptDrawState&);
+ void setRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&);
+ virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&);
// these reflect the current values of uniforms (GL uniform values travel with program)
RenderTargetState fRenderTargetState;
@@ -180,7 +180,7 @@ private:
const GrPendingFragmentStage&,
int index,
GrGLInstalledFragProc*) SK_OVERRIDE;
- virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrOptDrawState&);
+ virtual void onSetRenderTargetState(const GrPrimitiveProcessor&, const GrPipeline&);
friend class GrGLNvprProgramBuilder;
« no previous file with comments | « src/gpu/gl/GrGLGpuProgramCache.cpp ('k') | src/gpu/gl/GrGLProgram.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698