Index: mojo/examples/pepper_container_app/type_converters.h |
diff --git a/mojo/examples/pepper_container_app/type_converters.h b/mojo/examples/pepper_container_app/type_converters.h |
index 9bb2fb165a238c56a8beb0a03a57b7ce60df131f..6384f5bfb06a32f6b608d29e0bdca337b54e2caf 100644 |
--- a/mojo/examples/pepper_container_app/type_converters.h |
+++ b/mojo/examples/pepper_container_app/type_converters.h |
@@ -66,12 +66,11 @@ struct TypeConverter<RectPtr, PP_Rect> { |
}; |
template <> |
-struct TypeConverter<PP_Rect, RectPtr> { |
- static PP_Rect Convert(const RectPtr& input) { |
+struct TypeConverter<PP_Rect, SizePtr> { |
+ static PP_Rect Convert(const SizePtr& input) { |
if (!input) |
return PP_MakeRectFromXYWH(0, 0, 0, 0); |
- return PP_MakeRectFromXYWH(input->x, input->y, |
- input->width, input->height); |
+ return PP_MakeRectFromXYWH(0, 0, input->width, input->height); |
} |
}; |