Home | History | Annotate | Download | only in tests

Lines Matching refs:SerializationUtils

43 template<typename T> struct SerializationUtils {
53 template<> struct SerializationUtils<SkMatrix> {
62 template<> struct SerializationUtils<SkPath> {
71 template<> struct SerializationUtils<SkRegion> {
80 template<> struct SerializationUtils<SkString> {
89 template<> struct SerializationUtils<unsigned char> {
98 template<> struct SerializationUtils<SkColor> {
107 template<> struct SerializationUtils<SkColor4f> {
116 template<> struct SerializationUtils<int32_t> {
125 template<> struct SerializationUtils<SkPoint> {
134 template<> struct SerializationUtils<SkScalar> {
156 SerializationUtils<T>::Write(writer, testObj);
168 SerializationUtils<T>::Read(buffer, &obj);
175 SerializationUtils<T>::Read(buffer2, &obj2);
194 SerializationUtils<T>::Write(writer, testObj);
205 SerializationUtils<T>::Read(buffer, &obj);
213 SerializationUtils<T>::Read(buffer2, &obj2);
232 SerializationUtils<T>::Write(writer, data, kArraySize);
243 bool success = SerializationUtils<T>::Read(buffer, dataRead, kArraySize / 2);
249 success = SerializationUtils<T>::Read(buffer2, dataRead, kArraySize);