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

Unified Diff: src/gpu/GrInOrderDrawBuffer.h

Issue 742763002: scissor state on optstate (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years, 1 month 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/GrGpu.cpp ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrInOrderDrawBuffer.h
diff --git a/src/gpu/GrInOrderDrawBuffer.h b/src/gpu/GrInOrderDrawBuffer.h
index 58b239baa481ca23dbf87e77aa12a99344da3e70..ed5cdd42e6501934be73d79a325cc1ba5e0ace85 100644
--- a/src/gpu/GrInOrderDrawBuffer.h
+++ b/src/gpu/GrInOrderDrawBuffer.h
@@ -116,15 +116,11 @@ private:
};
struct Draw : public Cmd {
- Draw(const DrawInfo& info, const ScissorState& scissorState)
- : Cmd(kDraw_Cmd)
- , fInfo(info)
- , fScissorState(scissorState){}
+ Draw(const DrawInfo& info) : Cmd(kDraw_Cmd), fInfo(info) {}
virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
DrawInfo fInfo;
- ScissorState fScissorState;
};
struct StencilPath : public Cmd {
@@ -134,7 +130,6 @@ private:
virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
- ScissorState fScissorState;
GrStencilSettings fStencilSettings;
private:
@@ -149,7 +144,6 @@ private:
virtual void execute(GrInOrderDrawBuffer*, const GrOptDrawState*);
GrDeviceCoordTexture fDstCopy;
- ScissorState fScissorState;
GrStencilSettings fStencilSettings;
private:
@@ -168,7 +162,6 @@ private:
int fTransformsLocation;
PathTransformType fTransformsType;
GrDeviceCoordTexture fDstCopy;
- ScissorState fScissorState;
GrStencilSettings fStencilSettings;
private:
@@ -238,7 +231,7 @@ private:
// overrides from GrDrawTarget
void onDraw(const GrDrawState&,
const DrawInfo&,
- const GrClipMaskManager::ScissorState&) SK_OVERRIDE;
+ const ScissorState&) SK_OVERRIDE;
void onDrawRect(GrDrawState*,
const SkRect& rect,
const SkRect* localRect,
@@ -246,11 +239,11 @@ private:
void onStencilPath(const GrDrawState&,
const GrPath*,
- const GrClipMaskManager::ScissorState&,
+ const ScissorState&,
const GrStencilSettings&) SK_OVERRIDE;
void onDrawPath(const GrDrawState&,
const GrPath*,
- const GrClipMaskManager::ScissorState&,
+ const ScissorState&,
const GrStencilSettings&,
const GrDeviceCoordTexture* dstCopy) SK_OVERRIDE;
void onDrawPaths(const GrDrawState&,
@@ -259,7 +252,7 @@ private:
int count,
const float transforms[],
PathTransformType,
- const GrClipMaskManager::ScissorState&,
+ const ScissorState&,
const GrStencilSettings&,
const GrDeviceCoordTexture*) SK_OVERRIDE;
void onClear(const SkIRect* rect,
@@ -280,15 +273,14 @@ private:
// Attempts to concat instances from info onto the previous draw. info must represent an
// instanced draw. The caller must have already recorded a new draw state and clip if necessary.
- int concatInstancedDraw(const GrDrawState&,
- const DrawInfo&,
- const GrClipMaskManager::ScissorState&);
+ int concatInstancedDraw(const GrDrawState&, const DrawInfo&);
// Determines whether the current draw operation requires a new GrOptDrawState and if so
// records it. If the draw can be skipped false is returned and no new GrOptDrawState is
// recorded.
bool SK_WARN_UNUSED_RESULT recordStateAndShouldDraw(const GrDrawState&,
GrGpu::DrawType,
+ const GrClipMaskManager::ScissorState&,
const GrDeviceCoordTexture*);
// We lazily record clip changes in order to skip clips that have no effect.
void recordClipIfNecessary();
« no previous file with comments | « src/gpu/GrGpu.cpp ('k') | src/gpu/GrInOrderDrawBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698