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

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

Issue 1949253004: Rounded background image fast path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: todo 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/GradientGeneratedImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h
index 4a4f21914270c0614c405a59a5c067849eb52742..954b255301392aeae74518abadb01a7ad4e1cfab 100644
--- a/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h
+++ b/third_party/WebKit/Source/platform/graphics/GradientGeneratedImage.h
@@ -26,16 +26,15 @@
#ifndef GradientGeneratedImage_h
#define GradientGeneratedImage_h
-#include "platform/geometry/IntSize.h"
#include "platform/graphics/GeneratedImage.h"
#include "platform/graphics/Gradient.h"
-#include "platform/graphics/Image.h"
-#include "platform/graphics/ImageBuffer.h"
#include "wtf/RefPtr.h"
namespace blink {
-class PLATFORM_EXPORT GradientGeneratedImage : public GeneratedImage {
+class IntSize;
+
+class PLATFORM_EXPORT GradientGeneratedImage final : public GeneratedImage {
public:
static PassRefPtr<GradientGeneratedImage> create(PassRefPtr<Gradient> generator, const IntSize& size)
{
@@ -44,9 +43,11 @@ public:
~GradientGeneratedImage() override {}
+ bool applyShader(SkPaint&, const SkMatrix*) override;
+
protected:
void draw(SkCanvas*, const SkPaint&, const FloatRect&, const FloatRect&, RespectImageOrientationEnum, ImageClampingMode) override;
- void drawTile(GraphicsContext&, const FloatRect&) final;
+ void drawTile(GraphicsContext&, const FloatRect&) override;
GradientGeneratedImage(PassRefPtr<Gradient> generator, const IntSize& size)
: GeneratedImage(size)

Powered by Google App Engine
This is Rietveld 408576698