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

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

Issue 1001503002: Implement support for mixed sampled render targets (Closed) Base URL: https://skia.googlesource.com/skia.git@mix1
Patch Set: Fixes and squash with 3rd commit Created 5 years, 9 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/gl/GrGLGpu.h
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h
index 807ed8788e00414a4fd016c3a03ed18c9c465c4c..8054db923bfa51217b333fa922f65738feed931f 100644
--- a/src/gpu/gl/GrGLGpu.h
+++ b/src/gpu/gl/GrGLGpu.h
@@ -168,7 +168,8 @@ private:
// Flushes state from GrPipeline to GL. Returns false if the state couldn't be set.
// TODO we only have need to know if this is a line draw for flushing AA state on some buggy
// hardware. Evaluate if this is really necessary anymore
- bool flushGLState(const DrawArgs&, bool isLineDraw);
+ bool flushGLState(const DrawArgs&, bool isLineDraw,
+ GrSampleConfig sampleConfig = kUnified_GrSampleConfig);
// Sets up vertex attribute pointers and strides. On return indexOffsetInBytes gives the offset
// an into the index buffer. It does not account for drawInfo.startIndex() but rather the start
@@ -270,7 +271,8 @@ private:
void setViewport(const GrGLIRect& viewport);
void flushStencil(const GrStencilSettings&);
- void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool isLineDraw);
+ void flushHWAAState(GrRenderTarget* rt, bool useHWAA, bool isLineDraw,
+ GrSampleConfig sampleConfig = kUnified_GrSampleConfig);
bool configToGLFormats(GrPixelConfig config,
bool getSizedInternal,

Powered by Google App Engine
This is Rietveld 408576698