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..e6357c3e4d2293b58fe3221acf16732d4823bb53 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" |
@@ -9,6 +12,7 @@ |
#include "ppapi/c/pp_rect.h" |
#include "ppapi/c/pp_resource.h" |
#include "ppapi/c/pp_size.h" |
+#include "ppapi/thunk/ppapi_thunk_export.h" |
namespace ppapi { |
@@ -16,7 +20,7 @@ class TrackedCallback; |
namespace thunk { |
-class PPB_Graphics2D_API { |
+class PPAPI_THUNK_EXPORT PPB_Graphics2D_API { |
public: |
virtual ~PPB_Graphics2D_API() {} |
@@ -41,7 +45,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_ |