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

Unified Diff: webkit/plugins/ppapi/ppb_graphics_2d_impl.h

Issue 10823378: Cache image data objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 8 years, 4 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 | « ppapi/thunk/ppb_graphics_2d_thunk.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_graphics_2d_impl.h
diff --git a/webkit/plugins/ppapi/ppb_graphics_2d_impl.h b/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
index 277fc5cb6556be0d96d20bc768cf407107b09480..0af116d281c9b45af875aad5098bc29962086c41 100644
--- a/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
+++ b/webkit/plugins/ppapi/ppb_graphics_2d_impl.h
@@ -51,10 +51,11 @@ class PPB_Graphics2D_Impl : public ::ppapi::Resource,
virtual void Scroll(const PP_Rect* clip_rect,
const PP_Point* amount) OVERRIDE;
virtual void ReplaceContents(PP_Resource image_data) OVERRIDE;
- virtual int32_t Flush(
- scoped_refptr< ::ppapi::TrackedCallback> callback) OVERRIDE;
virtual bool SetScale(float scale) OVERRIDE;
virtual float GetScale() OVERRIDE;
+ virtual int32_t Flush(
+ scoped_refptr< ::ppapi::TrackedCallback> callback,
+ PP_Resource* old_image_data) OVERRIDE;
bool ReadImageData(PP_Resource image, const PP_Point* top_left);
@@ -142,7 +143,8 @@ class PPB_Graphics2D_Impl : public ::ppapi::Resource,
void ExecuteScroll(const gfx::Rect& clip, int dx, int dy,
gfx::Rect* invalidated_rect);
void ExecuteReplaceContents(PPB_ImageData_Impl* image,
- gfx::Rect* invalidated_rect);
+ gfx::Rect* invalidated_rect,
+ PP_Resource* old_image_data);
// Schedules the offscreen callback to be fired at a future time. This
// will add the given item to the offscreen_flush_callbacks_ vector.
« no previous file with comments | « ppapi/thunk/ppb_graphics_2d_thunk.cc ('k') | webkit/plugins/ppapi/ppb_graphics_2d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698