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

Unified Diff: sky/engine/platform/graphics/Pattern.cpp

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.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 | « sky/engine/platform/graphics/LoggingCanvas.cpp ('k') | sky/engine/platform/graphics/ProfilingCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/graphics/Pattern.cpp
diff --git a/sky/engine/platform/graphics/Pattern.cpp b/sky/engine/platform/graphics/Pattern.cpp
index d29593f7274fe6425bbda8234c8d1ae343d79e0a..3bd111217344e3610a30a60fd362d113ebc6b81d 100644
--- a/sky/engine/platform/graphics/Pattern.cpp
+++ b/sky/engine/platform/graphics/Pattern.cpp
@@ -30,7 +30,6 @@
#include "sky/engine/platform/graphics/skia/SkiaUtils.h"
#include "third_party/skia/include/core/SkCanvas.h"
-#include "third_party/skia/include/core/SkColorShader.h"
#include "v8/include/v8.h"
namespace blink {
@@ -64,7 +63,7 @@ SkShader* Pattern::shader()
// If we don't have a bitmap, return a transparent shader.
if (!m_tileImage) {
- m_pattern = adoptRef(new SkColorShader(SK_ColorTRANSPARENT));
+ m_pattern = adoptRef(SkShader::CreateColorShader(SK_ColorTRANSPARENT));
} else if (m_repeatMode == RepeatModeXY) {
m_pattern = adoptRef(SkShader::CreateBitmapShader(m_tileImage->bitmap(),
SkShader::kRepeat_TileMode, SkShader::kRepeat_TileMode, &localMatrix));
« no previous file with comments | « sky/engine/platform/graphics/LoggingCanvas.cpp ('k') | sky/engine/platform/graphics/ProfilingCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698