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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 1949253004: Rounded background image fast path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 7 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: third_party/WebKit/Source/platform/graphics/GraphicsContext.h
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
index 8149f19d43a3073e3f03e7d320daacf07da0c18c..3c4b0600dab80216fdeb721c8e8dc7e7a5b20739 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsContext.h
@@ -30,8 +30,6 @@
#include "platform/PlatformExport.h"
#include "platform/fonts/Font.h"
-#include "platform/geometry/FloatRect.h"
-#include "platform/geometry/FloatRoundedRect.h"
#include "platform/graphics/DashArray.h"
#include "platform/graphics/DrawLooperBuilder.h"
#include "platform/graphics/GraphicsContextState.h"
@@ -57,6 +55,8 @@ struct SkRect;
namespace blink {
+class FloatRect;
+class FloatRoundedRect;
class ImageBuffer;
class KURL;
class PaintController;
@@ -162,6 +162,8 @@ public:
void drawImage(Image*, const FloatRect& destRect, const FloatRect* srcRect = nullptr,
SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RespectImageOrientationEnum = DoNotRespectImageOrientation);
+ void drawImageRRect(Image*, const FloatRoundedRect& dest, const FloatRect* srcRect = nullptr,
chrishtr 2016/05/20 15:44:13 Make the srcRect parameter required.
f(malita) 2016/05/20 19:17:11 Done.
+ SkXfermode::Mode = SkXfermode::kSrcOver_Mode, RespectImageOrientationEnum = DoNotRespectImageOrientation);
void drawTiledImage(Image*, const FloatRect& destRect, const FloatPoint& srcPoint, const FloatSize& tileSize,
SkXfermode::Mode = SkXfermode::kSrcOver_Mode, const FloatSize& repeatSpacing = FloatSize());
void drawTiledImage(Image*, const FloatRect& destRect, const FloatRect& srcRect,

Powered by Google App Engine
This is Rietveld 408576698