Index: ppapi/thunk/ppb_graphics_2d_api.h |
diff --git a/ppapi/thunk/ppb_graphics_2d_api.h b/ppapi/thunk/ppb_graphics_2d_api.h |
index 6f14b936fde195b6e0ad69a599af7ddb7aeac03a..6f2006022b36cf62f182a2442ec22dba4a197e86 100644 |
--- a/ppapi/thunk/ppb_graphics_2d_api.h |
+++ b/ppapi/thunk/ppb_graphics_2d_api.h |
@@ -2,6 +2,9 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#ifndef PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_ |
+#define PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_ |
+ |
#include "base/memory/ref_counted.h" |
#include "ppapi/c/pp_bool.h" |
#include "ppapi/c/pp_completion_callback.h" |
@@ -41,7 +44,12 @@ class PPB_Graphics2D_API { |
// destroyed if there was one. |
virtual int32_t Flush(scoped_refptr<TrackedCallback> callback, |
PP_Resource* old_image_data) = 0; |
+ |
+ // Test only |
+ virtual bool ReadImageData(PP_Resource image, const PP_Point* top_left) = 0; |
}; |
} // namespace thunk |
} // namespace ppapi |
+ |
+#endif // PPAPI_THUNK_PPB_GRAPHICS_2D_API_H_ |