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

Unified Diff: ppapi/proxy/graphics_2d_resource.cc

Issue 1881603002: Added SetLayerTransform to PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
Index: ppapi/proxy/graphics_2d_resource.cc
diff --git a/ppapi/proxy/graphics_2d_resource.cc b/ppapi/proxy/graphics_2d_resource.cc
index 3b91a6a493b99c6f64422b43b235272b66f301f6..d7b2cbcb238ded01cade87873bf6fbdc7ead74d8 100644
--- a/ppapi/proxy/graphics_2d_resource.cc
+++ b/ppapi/proxy/graphics_2d_resource.cc
@@ -113,6 +113,17 @@ float Graphics2DResource::GetScale() {
return scale_;
}
+PP_Bool Graphics2DResource::SetLayerTransform(float scale,
+ const PP_Point* origin,
wjmaclean 2016/04/13 14:47:19 Indenting is wrong here.
alessandroa 2016/04/21 15:39:21 Acknowledged.
+ const PP_Point* transform) {
+ if (scale <= 0.0f)
+ return PP_FALSE;
wjmaclean 2016/04/13 14:47:19 nit: Add blank line after this line.
alessandroa 2016/04/21 15:39:21 Done.
+ Post(RENDERER, PpapiHostMsg_Graphics2D_SetLayerTransform(scale,
+ *origin,
+ *transform));
+ return PP_TRUE;
+}
+
int32_t Graphics2DResource::Flush(scoped_refptr<TrackedCallback> callback) {
// If host is not even created, return failure immediately. This can happen
// when failed to initialize (in constructor).

Powered by Google App Engine
This is Rietveld 408576698