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

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

Issue 816513003: Stop creating GrODS for stencilPath commands. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 6 years 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 7137bc708f52ea27100c5b5918e08c4b1ee1c0ad..93564fcbc09a5cf815f894bf83b803d2dc7b0b4d 100644
--- a/src/gpu/gl/GrGpuGL.h
+++ b/src/gpu/gl/GrGpuGL.h
@@ -146,7 +146,7 @@ private:
void onResolveRenderTarget(GrRenderTarget* target) SK_OVERRIDE;
void onDraw(const GrOptDrawState&, const GrDrawTarget::DrawInfo&) SK_OVERRIDE;
- void onStencilPath(const GrOptDrawState&, const GrPath*, const GrStencilSettings&) SK_OVERRIDE;
+ void onStencilPath(const GrPath*, const StencilPathState&) SK_OVERRIDE;
void onDrawPath(const GrOptDrawState&, const GrPath*, const GrStencilSettings&) SK_OVERRIDE;
void onDrawPaths(const GrOptDrawState&,
const GrPathRange*,
@@ -223,12 +223,13 @@ private:
#endif
};
- // flushes dithering, color-mask, and face culling stat
- void flushMiscFixedFunctionState(const GrOptDrawState&);
+ void flushDither(bool dither);
+ void flushColorWriteDisable(bool disableColorWrites);
+ void flushDrawFace(GrDrawState::DrawFace face);
// flushes the scissor. see the note on flushBoundTextureAndParams about
// flushing the scissor after that function is called.
- void flushScissor(const GrClipMaskManager::ScissorState&,
+ void flushScissor(const GrScissorState&,
const GrGLIRect& rtViewport,
GrSurfaceOrigin rtOrigin);
@@ -248,8 +249,8 @@ private:
// NULL means whole target. Can be an empty rect.
void flushRenderTarget(GrGLRenderTarget*, const SkIRect* bounds);
- void flushStencil(const GrStencilSettings&, DrawType);
- void flushAAState(const GrOptDrawState&);
+ void flushStencil(const GrStencilSettings&);
+ void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool isLineDraw);
bool configToGLFormats(GrPixelConfig config,
bool getSizedInternal,

Powered by Google App Engine
This is Rietveld 408576698