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

Unified Diff: src/gpu/GrPipeline.h

Issue 2251573002: Implement difference clip rects with window rectangles (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 4 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/GrPipeline.h
diff --git a/src/gpu/GrPipeline.h b/src/gpu/GrPipeline.h
index 1457dbc3f58120861a445237a978eb7bbcf60a78..0d07deb5e61e92b7acb961fdd3ac0dddbd95b908 100644
--- a/src/gpu/GrPipeline.h
+++ b/src/gpu/GrPipeline.h
@@ -18,6 +18,7 @@
#include "GrProgramDesc.h"
#include "GrStencilSettings.h"
#include "GrTypesPriv.h"
+#include "GrWindowRectangles.h"
#include "SkMatrix.h"
#include "SkRefCnt.h"
@@ -59,6 +60,7 @@ public:
const GrCaps* fCaps;
GrPipelineOptimizations fOpts;
const GrScissorState* fScissor;
+ const GrWindowRectangles* fWindows;
bool fHasStencilClip;
GrXferProcessor::DstTexture fDstTexture;
};
@@ -152,6 +154,8 @@ public:
const GrScissorState& getScissorState() const { return fScissorState; }
+ const GrWindowRectangles& getWindowRectangles() const { return fWindows; }
+
bool isHWAntialiasState() const { return SkToBool(fFlags & kHWAA_Flag); }
bool snapVerticesToPixelCenters() const { return SkToBool(fFlags & kSnapVertices_Flag); }
bool getDisableOutputConversionToSRGB() const {
@@ -219,6 +223,7 @@ private:
typedef GrPendingProgramElement<const GrXferProcessor> ProgramXferProcessor;
RenderTarget fRenderTarget;
GrScissorState fScissorState;
+ GrWindowRectangles fWindows;
GrStencilSettings fStencilSettings;
GrDrawFace fDrawFace;
uint32_t fFlags;

Powered by Google App Engine
This is Rietveld 408576698