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

Unified Diff: ppapi/examples/2d/paint_manager_example.cc

Issue 7215030: Don't copy the Graphics2D when binding a new one. This brings the (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/cpp/paint_manager.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/2d/paint_manager_example.cc
===================================================================
--- ppapi/examples/2d/paint_manager_example.cc (revision 89742)
+++ ppapi/examples/2d/paint_manager_example.cc (working copy)
@@ -73,7 +73,7 @@
}
// PaintManager::Client implementation.
- virtual bool OnPaint(pp::Graphics2D&,
+ virtual bool OnPaint(pp::Graphics2D graphics_2d&,
const std::vector<pp::Rect>& paint_rects,
const pp::Rect& paint_bounds) {
// Make an image just large enough to hold all dirty rects. We won't
@@ -114,6 +114,7 @@
square.height(),
0xFF000000);
+ graphics_2d.PaintImageData(updated_image, paint_bounds.point());
return true;
}
« no previous file with comments | « ppapi/cpp/paint_manager.cc ('k') | webkit/plugins/ppapi/ppapi_plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698