summaryrefslogtreecommitdiffstats
path: root/ui/gfx/compositor/compositor_gl.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-06 15:42:12 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-06 15:42:12 +0000
commitb7e98032420cd6308bd4b47b824a792f653a1deb (patch)
tree8610e98a5339ed7450030c8dea06856886514f5e /ui/gfx/compositor/compositor_gl.cc
parent0da828d0ba0aef8b8b11531919f01b002e326858 (diff)
downloadchromium_src-b7e98032420cd6308bd4b47b824a792f653a1deb.zip
chromium_src-b7e98032420cd6308bd4b47b824a792f653a1deb.tar.gz
chromium_src-b7e98032420cd6308bd4b47b824a792f653a1deb.tar.bz2
Adds View::OnWillCompositeTexture that is invoked before a texture is
drawn by the compositor and Compositor::Blur to blur a region. If you want to blur a region, then you have to override OnWillCompositeTexture and invoke Blur. I considered adding an Effect enum that allows you to set BLUR on any view. I shied away from that as we may need blur to take a region, and I wasn't too happy about adding more to view. I can easily change it though. BUG=none TEST=none R=ben@chromium.org,wjmaclean@chromium.org Review URL: http://codereview.chromium.org/7056046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87989 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gfx/compositor/compositor_gl.cc')
-rw-r--r--ui/gfx/compositor/compositor_gl.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/gfx/compositor/compositor_gl.cc b/ui/gfx/compositor/compositor_gl.cc
index 7e6e297..794d836 100644
--- a/ui/gfx/compositor/compositor_gl.cc
+++ b/ui/gfx/compositor/compositor_gl.cc
@@ -66,6 +66,7 @@ class CompositorGL : public Compositor {
virtual Texture* CreateTexture() OVERRIDE;
virtual void NotifyStart() OVERRIDE;
virtual void NotifyEnd() OVERRIDE;
+ virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
// Specific to CompositorGL.
bool InitShaders();
@@ -272,6 +273,10 @@ void CompositorGL::NotifyEnd() {
started_ = false;
}
+void CompositorGL::Blur(const gfx::Rect& bounds) {
+ NOTIMPLEMENTED();
+}
+
namespace {
GLuint CompileShader(GLenum type, const GLchar* source) {