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

Unified Diff: Source/platform/graphics/StaticBitmapPattern.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 | « Source/platform/graphics/Gradient.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/StaticBitmapPattern.cpp
diff --git a/Source/platform/graphics/StaticBitmapPattern.cpp b/Source/platform/graphics/StaticBitmapPattern.cpp
index 2e6a652c131709e139989350a30344539759bb33..58544e764bb9e8aa42b0a25262f2cda6a9e21910 100644
--- a/Source/platform/graphics/StaticBitmapPattern.cpp
+++ b/Source/platform/graphics/StaticBitmapPattern.cpp
@@ -7,8 +7,8 @@
#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/SkImage.h"
+#include "third_party/skia/include/core/SkShader.h"
#include <v8.h>
namespace blink {
@@ -33,7 +33,7 @@ PassRefPtr<SkShader> StaticBitmapPattern::createShader()
{
// If we have no image, return null
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 | « Source/platform/graphics/Gradient.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698