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

Unified Diff: sky/engine/platform/graphics/Gradient.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 | « skia/skia_chrome.gypi ('k') | sky/engine/platform/graphics/InterceptingCanvas.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/graphics/Gradient.cpp
diff --git a/sky/engine/platform/graphics/Gradient.cpp b/sky/engine/platform/graphics/Gradient.cpp
index ccd85052294f139128051ce08a88b2c14e133bd3..e4abfe52a9ce7ac608ba369c06789e090041c418 100644
--- a/sky/engine/platform/graphics/Gradient.cpp
+++ b/sky/engine/platform/graphics/Gradient.cpp
@@ -32,7 +32,6 @@
#include "sky/engine/platform/graphics/GraphicsContext.h"
#include "sky/engine/platform/graphics/skia/SkiaUtils.h"
#include "third_party/skia/include/core/SkColor.h"
-#include "third_party/skia/include/core/SkColorShader.h"
#include "third_party/skia/include/core/SkShader.h"
#include "third_party/skia/include/effects/SkGradientShader.h"
@@ -260,7 +259,7 @@ SkShader* Gradient::shader()
if (!m_gradient) {
// use last color, since our "geometry" was degenerate (e.g. radius==0)
- m_gradient = adoptRef(new SkColorShader(colors[countUsed - 1]));
+ m_gradient = adoptRef(SkShader::CreateColorShader(colors[countUsed - 1]));
}
return m_gradient.get();
}
« no previous file with comments | « skia/skia_chrome.gypi ('k') | sky/engine/platform/graphics/InterceptingCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698