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

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

Issue 785823002: use factory for colorshader, class is deprecated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | Source/platform/graphics/Gradient.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/BitmapPattern.cpp
diff --git a/Source/platform/graphics/BitmapPattern.cpp b/Source/platform/graphics/BitmapPattern.cpp
index 4cdf9faa95d337cea7be66dec16674524b3ce656..745965f654d024c7a0ebeaa5537af724ab9f3125 100644
--- a/Source/platform/graphics/BitmapPattern.cpp
+++ b/Source/platform/graphics/BitmapPattern.cpp
@@ -7,7 +7,7 @@
#include "platform/graphics/skia/SkiaUtils.h"
#include "third_party/skia/include/core/SkCanvas.h"
-#include "third_party/skia/include/core/SkColorShader.h"
+#include "third_party/skia/include/core/SkShader.h"
#include <v8.h>
namespace blink {
@@ -27,7 +27,7 @@ BitmapPattern::BitmapPattern(PassRefPtr<Image> image, RepeatMode repeatMode)
PassRefPtr<SkShader> BitmapPattern::createShader()
{
if (!m_tileImage) {
- return adoptRef(new SkColorShader(SK_ColorTRANSPARENT));
+ return adoptRef(SkShader::CreateColorShader(SK_ColorTRANSPARENT));
}
SkMatrix localMatrix = affineTransformToSkMatrix(m_patternSpaceTransformation);
« no previous file with comments | « no previous file | Source/platform/graphics/Gradient.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698