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

Unified Diff: ui/gfx/compositor/layer.h

Issue 9566036: Expose compositor filters on ui::Layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: when blur radius is 0, remove the blur filter Created 8 years, 8 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 | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/layer.h
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h
index a0dd84af743ed522241b3bf383fd3e93ac5123a3..77237d224afdf00854a405354593f593eea5d5a2 100644
--- a/ui/gfx/compositor/layer.h
+++ b/ui/gfx/compositor/layer.h
@@ -15,8 +15,8 @@
#include "base/message_loop.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkRegion.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebContentLayerClient.h"
-#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebLayer.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebContentLayerClient.h"
+#include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/transform.h"
#include "ui/gfx/compositor/compositor.h"
@@ -127,6 +127,11 @@ class COMPOSITOR_EXPORT Layer :
float opacity() const { return opacity_; }
void SetOpacity(float opacity);
+ // Blur pixels by this amount in anything below the layer and visible through
+ // the layer.
+ int background_blur() const { return background_blur_radius_; }
+ void SetBackgroundBlur(int blur_radius);
+
// Return the target opacity if animator is running, or the current opacity
// otherwise.
float GetTargetOpacity() const;
@@ -276,6 +281,7 @@ class COMPOSITOR_EXPORT Layer :
SkRegion damaged_region_;
float opacity_;
+ int background_blur_radius_;
std::string name_;
« no previous file with comments | « no previous file | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698