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

Unified Diff: ui/gfx/image/image_skia_operations.h

Issue 2443983003: Refactor ShadowImageSource into ui/gfx/skia_util for better reuse (Closed)
Patch Set: remove changes Created 4 years, 2 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: ui/gfx/image/image_skia_operations.h
diff --git a/ui/gfx/image/image_skia_operations.h b/ui/gfx/image/image_skia_operations.h
index 64f2f832179a00fced62b74d4822f3a8b54008b5..f3829a2c6bd981d150718caa17e4fc29b6140bdd 100644
--- a/ui/gfx/image/image_skia_operations.h
+++ b/ui/gfx/image/image_skia_operations.h
@@ -87,6 +87,13 @@ class GFX_EXPORT ImageSkiaOperations {
static ImageSkia CreateImageWithDropShadow(const ImageSkia& source,
const ShadowValues& shadows);
+ // Creates an image that is 1dp wide, suitable for tiling horizontally to
+ // create a drop shadow effect. The purpose of tiling a static image is to
+ // avoid repeatedly asking Skia to draw a shadow.
+ static gfx::ImageSkia CreateHorizontalShadow(
+ const std::vector<ShadowValue>& shadows,
+ bool fades_down);
+
// Creates an image which is a rotation of the |source|. |rotation| is the
// amount of clockwise rotation in degrees.
static ImageSkia CreateRotatedImage(
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | ui/gfx/image/image_skia_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698