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

Unified Diff: webkit/glue/plugins/pepper_device_context_2d.h

Issue 2080021: Chrome-side of tests for Pepper Device2D. This includes some bugfixes and min... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months 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 | « chrome/test/ui/ppapi_uitest.cc ('k') | webkit/glue/plugins/pepper_device_context_2d.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_device_context_2d.h
===================================================================
--- webkit/glue/plugins/pepper_device_context_2d.h (revision 48097)
+++ webkit/glue/plugins/pepper_device_context_2d.h (working copy)
@@ -38,6 +38,7 @@
virtual DeviceContext2D* AsDeviceContext2D() { return this; }
// PPB_DeviceContext2D functions.
+ bool Describe(int32_t* width, int32_t* height, bool* is_always_opaque);
bool PaintImageData(PP_Resource image,
int32_t x, int32_t y,
const PP_Rect* src_rect);
@@ -45,6 +46,7 @@
bool ReplaceContents(PP_Resource image);
bool Flush(PPB_DeviceContext2D_FlushCallback callback,
void* callback_data);
+ bool ReadImageData(PP_Resource image, int32_t x, int32_t y);
void Paint(WebKit::WebCanvas* canvas,
const gfx::Rect& plugin_rect,
@@ -53,7 +55,7 @@
private:
// Called internally to execute the different queued commands. The
// parameters to these functions will have already been validated.
- void ExecutePaintImageData(const ImageData* image,
+ void ExecutePaintImageData(ImageData* image,
int x, int y,
const gfx::Rect& src_rect);
void ExecuteScroll(const gfx::Rect& clip, int dx, int dy);
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | webkit/glue/plugins/pepper_device_context_2d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698