clean up public m44 and camera api
saveCamera() is no longer experimental
In a separate CL, will stage changes to concat virtual to take M44.
Change-Id: Iaf37ce2f24ab1223c54aeb1e79eaebf18f87fece
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/281589
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Reed <reed@google.com>
diff --git a/samplecode/Sample3D.cpp b/samplecode/Sample3D.cpp
index 16e22cc..d8a6150 100644
--- a/samplecode/Sample3D.cpp
+++ b/samplecode/Sample3D.cpp
@@ -90,7 +90,7 @@
// want "world" to be in our big coordinates (e.g. area), so apply this inverse
// as part of our "camera".
- canvas->experimental_saveCamera(viewport * perspective, camera * inv(viewport));
+ canvas->saveCamera(viewport * perspective, camera * inv(viewport));
}
};
@@ -289,7 +289,7 @@
SkM44 trans = SkM44::Translate(200, 200, 0); // center of the rotation
SkM44 m = fRotateAnimator.rotation() * fRotation * f.asM44(200);
- canvas->concat44(trans * m * inv(trans));
+ canvas->concat(trans * m * inv(trans));
this->drawContent(canvas, f.fColor, index++, drawFront);
}
}