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

Unified Diff: Source/platform/graphics/BitmapPattern.h

Issue 1290983003: SkImage-only bitmap patterns (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: drop non-repeat optimization Created 5 years, 4 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: Source/platform/graphics/BitmapPattern.h
diff --git a/Source/platform/graphics/BitmapPattern.h b/Source/platform/graphics/BitmapPattern.h
deleted file mode 100644
index 3fcdfdaa27565d7e86576e748853081d3e9587ce..0000000000000000000000000000000000000000
--- a/Source/platform/graphics/BitmapPattern.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BitmapPattern_h
-#define BitmapPattern_h
-
-#include "platform/graphics/BitmapPatternBase.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-
-namespace blink {
-
-class PLATFORM_EXPORT BitmapPattern : public BitmapPatternBase {
-public:
- static PassRefPtr<BitmapPattern> create(PassRefPtr<Image> tileImage, RepeatMode repeatMode)
- {
- return adoptRef(new BitmapPattern(tileImage, repeatMode));
- }
-
- ~BitmapPattern() override {}
-
-protected:
- PassRefPtr<SkShader> createShader() override;
-
- SkImageInfo getBitmapInfo() override;
- void drawBitmapToCanvas(SkCanvas&, SkPaint&) override;
-
-private:
- BitmapPattern(PassRefPtr<Image>, RepeatMode);
-
- SkBitmap m_tileImage;
-};
-
-} // namespace
-
-#endif

Powered by Google App Engine
This is Rietveld 408576698