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

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

Issue 1786183002: Revert of Switch Blink SkShader clients to sk_sp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/Pattern.h
diff --git a/third_party/WebKit/Source/platform/graphics/Pattern.h b/third_party/WebKit/Source/platform/graphics/Pattern.h
index a855cca9e6e6e879cd6a76b36514c60c256556b0..c2068ea9b0d91b8f1d3e562842fd01488c1d9506 100644
--- a/third_party/WebKit/Source/platform/graphics/Pattern.h
+++ b/third_party/WebKit/Source/platform/graphics/Pattern.h
@@ -32,11 +32,11 @@
#include "platform/PlatformExport.h"
#include "platform/graphics/Image.h"
#include "platform/transforms/AffineTransform.h"
-#include "third_party/skia/include/core/SkRefCnt.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
+#include "wtf/RefPtr.h"
class SkPaint;
class SkPicture;
@@ -71,7 +71,7 @@
virtual bool isTextureBacked() const { return false; }
protected:
- virtual sk_sp<SkShader> createShader() = 0;
+ virtual PassRefPtr<SkShader> createShader() = 0;
void adjustExternalMemoryAllocated(int64_t delta);
@@ -81,7 +81,7 @@
Pattern(RepeatMode, int64_t externalMemoryAllocated = 0);
private:
- sk_sp<SkShader> m_pattern;
+ RefPtr<SkShader> m_pattern;
int64_t m_externalMemoryAllocated;
};
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImagePattern.cpp ('k') | third_party/WebKit/Source/platform/graphics/Pattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698