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

Unified Diff: sky/engine/core/painting/Shader.cpp

Issue 1152963009: Add support for linear gradients, implemented as skia shaders. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: . Created 5 years, 6 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
« no previous file with comments | « sky/engine/core/painting/Shader.h ('k') | sky/engine/core/painting/Shader.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/painting/Shader.cpp
diff --git a/sky/engine/core/painting/CanvasPath.cpp b/sky/engine/core/painting/Shader.cpp
similarity index 64%
copy from sky/engine/core/painting/CanvasPath.cpp
copy to sky/engine/core/painting/Shader.cpp
index 145ce801363a2baa7f2fc6e05a58f29f6870f122..332dc24504141ab4e398a0596099d69f2a3e2402 100644
--- a/sky/engine/core/painting/CanvasPath.cpp
+++ b/sky/engine/core/painting/Shader.cpp
@@ -3,16 +3,15 @@
// found in the LICENSE file.
#include "sky/engine/config.h"
-#include "sky/engine/core/painting/CanvasPath.h"
+#include "sky/engine/core/painting/Shader.h"
namespace blink {
-CanvasPath::CanvasPath()
-{
+Shader::Shader(PassRefPtr<SkShader> shader)
+ : shader_(shader) {
}
-CanvasPath::~CanvasPath()
-{
+Shader::~Shader() {
}
} // namespace blink
« no previous file with comments | « sky/engine/core/painting/Shader.h ('k') | sky/engine/core/painting/Shader.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698