summaryrefslogtreecommitdiffstats
path: root/mojo
diff options
context:
space:
mode:
authorjin.a.yang <jin.a.yang@intel.com>2015-09-11 09:46:46 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-11 16:47:21 +0000
commitf23471c866d7d3334d61538eb738d494542b5cac (patch)
tree42ecce69e86019b5924a7e7ceeff171c501b864a /mojo
parent2adba8ab46d4c242b94f433bfe873026b6f1cdd4 (diff)
downloadchromium_src-f23471c866d7d3334d61538eb738d494542b5cac.zip
chromium_src-f23471c866d7d3334d61538eb738d494542b5cac.tar.gz
chromium_src-f23471c866d7d3334d61538eb738d494542b5cac.tar.bz2
Add GL_CHROMIUM_screen_space_antialiasing to support alternative AA
MSAA is very expensive on some platforms. We introduce extention GL_CHROMIUM_screen_space_antialiasing to support other antialiasing approach. It will perform antialiasing to the color attachments of the currently bound draw framebuffer. As an example, we implement it using GL_INTEL_framebuffer_CMAA which results in similar quality of MSAA at better performance. The blink side change is in below link: https://codereview.chromium.org/1301923002 BUG=524285 Review URL: https://codereview.chromium.org/1298523003 Cr-Commit-Position: refs/heads/master@{#348412}
Diffstat (limited to 'mojo')
-rw-r--r--mojo/gpu/mojo_gles2_impl_autogen.cc3
-rw-r--r--mojo/gpu/mojo_gles2_impl_autogen.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc
index 55e8ba6..d706d62 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.cc
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
@@ -1721,5 +1721,8 @@ GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() {
void MojoGLES2Impl::BlendBarrierKHR() {
NOTREACHED() << "Unimplemented BlendBarrierKHR.";
}
+void MojoGLES2Impl::ApplyScreenSpaceAntialiasingCHROMIUM() {
+ NOTREACHED() << "Unimplemented ApplyScreenSpaceAntialiasingCHROMIUM.";
+}
} // namespace mojo
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.h b/mojo/gpu/mojo_gles2_impl_autogen.h
index 0d1047b..f5f8b75 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.h
+++ b/mojo/gpu/mojo_gles2_impl_autogen.h
@@ -815,6 +815,7 @@ class MojoGLES2Impl : public gpu::gles2::GLES2Interface {
GLenum coverMode) override;
GLenum GetGraphicsResetStatusKHR() override;
void BlendBarrierKHR() override;
+ void ApplyScreenSpaceAntialiasingCHROMIUM() override;
private:
MojoGLES2Context context_;