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

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

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 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/PaintRecordPattern.h
diff --git a/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.h b/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.h
index d987801d33b0663578d3dca04ae13e9e862b8049..fe3d95d6e413f76123ee3aba7272c5b4141db430 100644
--- a/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.h
+++ b/third_party/WebKit/Source/platform/graphics/PaintRecordPattern.h
@@ -5,6 +5,7 @@
#ifndef PaintRecordPattern_h
#define PaintRecordPattern_h
+#include "platform/geometry/FloatRect.h"
#include "platform/graphics/Pattern.h"
#include "third_party/skia/include/core/SkRefCnt.h"
@@ -13,7 +14,9 @@ namespace blink {
// TODO(enne): rename this
class PLATFORM_EXPORT PaintRecordPattern final : public Pattern {
public:
- static PassRefPtr<PaintRecordPattern> Create(sk_sp<PaintRecord>, RepeatMode);
+ static PassRefPtr<PaintRecordPattern> Create(sk_sp<PaintRecord>,
+ const FloatRect& record_bounds,
+ RepeatMode);
~PaintRecordPattern() override;
@@ -21,9 +24,12 @@ class PLATFORM_EXPORT PaintRecordPattern final : public Pattern {
sk_sp<PaintShader> CreateShader(const SkMatrix&) override;
private:
- PaintRecordPattern(sk_sp<PaintRecord>, RepeatMode);
+ PaintRecordPattern(sk_sp<PaintRecord>,
+ const FloatRect& record_bounds,
+ RepeatMode);
sk_sp<PaintRecord> tile_record_;
+ FloatRect tile_record_bounds_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698