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

Unified Diff: Source/platform/graphics/gpu/DrawingBuffer.h

Issue 1301923002: Add GL_CHROMIUM_screen_space_antialiasing to support alternative AA (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add empty implementation Created 5 years, 3 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 | « no previous file | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/gpu/DrawingBuffer.h
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.h b/Source/platform/graphics/gpu/DrawingBuffer.h
index 806fcb30ee8b199c39b787c4d43a0f39e891d940..3da4f7c6a1f2cec3c5fbde72250069304562e6e5 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -180,7 +180,7 @@ public:
bool paintRenderingResultsToImageData(int&, int&, SourceDrawingBuffer, WTF::ArrayBufferContents&);
int sampleCount() const { return m_sampleCount; }
- bool explicitResolveOfMultisampleData() const { return m_multisampleMode == ExplicitResolve; }
+ bool explicitResolveOfMultisampleData() const { return m_antiAliasingMode == MSAAExplicitResolve; }
// Bind to m_drawFramebufferBinding or m_readFramebufferBinding if it's not 0.
// Otherwise, bind to the default FBO.
@@ -281,13 +281,14 @@ private:
bool m_contentsChangeCommitted;
bool m_bufferClearNeeded;
- enum MultisampleMode {
+ enum AntialiasingMode {
None,
- ImplicitResolve,
- ExplicitResolve,
+ MSAAImplicitResolve,
+ MSAAExplicitResolve,
+ ScreenSpaceAntialiasing,
};
- MultisampleMode m_multisampleMode;
+ AntialiasingMode m_antiAliasingMode;
WebGraphicsContext3D::Attributes m_actualAttributes;
unsigned m_internalColorFormat;
« no previous file with comments | « no previous file | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698