aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkRemote.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-11-03 09:45:03 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-03 09:45:03 -0800
commit444d91fec1b51b53a77e79a47a63a944f64b32f8 (patch)
tree16a57d398a83ca0c2de69d895497dc1022a7368f /src/core/SkRemote.h
parent98cad6219b430eddf5528473311279f21dbd2e10 (diff)
SkRemote: saveLayer
Diffstat (limited to 'src/core/SkRemote.h')
-rw-r--r--src/core/SkRemote.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/core/SkRemote.h b/src/core/SkRemote.h
index 5fb20242fe..b33309449c 100644
--- a/src/core/SkRemote.h
+++ b/src/core/SkRemote.h
@@ -81,17 +81,18 @@ namespace SkRemote {
virtual void undefine(ID) = 0;
- virtual void save() = 0;
- virtual void restore() = 0;
-
- virtual void setMatrix(ID matrix) = 0;
-
// TODO: do these all belong here in CommonIDs?
struct CommonIDs {
ID misc, patheffect, shader, xfermode, maskfilter,
colorfilter, rasterizer, looper, imagefilter, annotation;
};
+ virtual void save() = 0;
+ virtual void restore() = 0;
+ virtual void saveLayer(ID bounds, CommonIDs, SkCanvas::SaveFlags) = 0;
+
+ virtual void setMatrix(ID matrix) = 0;
+
virtual void clipPath(ID path, SkRegion::Op, bool aa) = 0;
virtual void fillPath(ID path, CommonIDs) = 0;
virtual void strokePath(ID path, CommonIDs, ID stroke) = 0;