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

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

Issue 2550593002: Update WM shadows for MD. (Closed)
Patch Set: fix border for small windows Created 4 years 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 | « chrome/browser/ui/views/frame/browser_header_painter_ash.cc ('k') | ui/gfx/image/image_skia_operations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f3829a2c6bd981d150718caa17e4fc29b6140bdd..1d7d36c61d98a05fdfebcc5279e9dab807b7a945 100644
--- a/ui/gfx/image/image_skia_operations.h
+++ b/ui/gfx/image/image_skia_operations.h
@@ -6,6 +6,9 @@
#define UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_
#include "skia/ext/image_operations.h"
+#include "third_party/skia/include/core/SkDrawLooper.h"
+#include "third_party/skia/include/core/SkPaint.h"
+#include "third_party/skia/include/core/SkRRect.h"
#include "ui/gfx/color_utils.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/shadow_value.h"
@@ -87,10 +90,16 @@ class GFX_EXPORT ImageSkiaOperations {
static ImageSkia CreateImageWithDropShadow(const ImageSkia& source,
const ShadowValues& shadows);
+ // Creates an image with the given shadows painted around a round rect with
+ // the given corner radius. The image will be just large enough to paint the
+ // shadows appropriately with a 1px square region reserved for "content".
+ static ImageSkia CreateShadowNinebox(const ShadowValues& shadows,
+ float corner_radius);
+
// 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(
+ static ImageSkia CreateHorizontalShadow(
const std::vector<ShadowValue>& shadows,
bool fades_down);
« no previous file with comments | « chrome/browser/ui/views/frame/browser_header_painter_ash.cc ('k') | ui/gfx/image/image_skia_operations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698