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

Unified Diff: experimental/SkV8Example/JsContext.cpp

Issue 177963005: Rename Path to Path2D (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 10 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 | « no previous file | experimental/SkV8Example/Path.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/SkV8Example/JsContext.cpp
diff --git a/experimental/SkV8Example/JsContext.cpp b/experimental/SkV8Example/JsContext.cpp
index 047147dc82785b3e44f96d3eb645612be4b8bb7e..c84962190508fb38f1f93fd5f98982093bd64bd8 100644
--- a/experimental/SkV8Example/JsContext.cpp
+++ b/experimental/SkV8Example/JsContext.cpp
@@ -13,7 +13,7 @@ using namespace v8;
#include "Global.h"
#include "JsContext.h"
-#include "Path.h"
+#include "Path2D.h"
#include "SkCanvas.h"
@@ -119,7 +119,7 @@ void JsContext::Stroke(const v8::FunctionCallbackInfo<Value>& args) {
Handle<External> field = Handle<External>::Cast(
args[0]->ToObject()->GetInternalField(0));
void* ptr = field->Value();
- Path* path = static_cast<Path*>(ptr);
+ Path2D* path = static_cast<Path2D*>(ptr);
canvas->drawPath(path->getSkPath(), jsContext->fStrokeStyle);
}
@@ -138,7 +138,7 @@ void JsContext::Fill(const v8::FunctionCallbackInfo<Value>& args) {
Handle<External> field = Handle<External>::Cast(
args[0]->ToObject()->GetInternalField(0));
void* ptr = field->Value();
- Path* path = static_cast<Path*>(ptr);
+ Path2D* path = static_cast<Path2D*>(ptr);
canvas->drawPath(path->getSkPath(), jsContext->fFillStyle);
}
« no previous file with comments | « no previous file | experimental/SkV8Example/Path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698