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

Unified Diff: ppapi/thunk/ppb_graphics_2d_api.h

Issue 11053003: Migrate Graphics2D to new design. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 8 years, 1 month 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
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_stable.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_stable.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698