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

Unified Diff: src/core/SkRemote.cpp

Issue 1410223002: SkRemote: impl onDrawDRRect (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 2 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 | « src/core/SkRemote.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkRemote.cpp
diff --git a/src/core/SkRemote.cpp b/src/core/SkRemote.cpp
index d3da1d2bfa07d3078614fe56d8341213bae1b605..4f2714fa24f9fcf231f77ba72e1ca23310eb7762 100644
--- a/src/core/SkRemote.cpp
+++ b/src/core/SkRemote.cpp
@@ -207,6 +207,15 @@ namespace SkRemote {
this->onDrawPath(path, paint);
}
+ void Client::onDrawDRRect(const SkRRect& outside,
+ const SkRRect& inside,
+ const SkPaint& paint) {
+ SkPath path;
+ path.addRRect(outside);
+ path.addRRect(inside, SkPath::kCCW_Direction);
+ this->onDrawPath(path, paint);
+ }
+
void Client::onDrawPath(const SkPath& path, const SkPaint& paint) {
LookupScope ls(fCache, fEncoder);
ID p = ls.lookup(path),
« no previous file with comments | « src/core/SkRemote.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698