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

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

Issue 6676072: Unbreak compilation of ppapi examples. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed virtual functions. Created 9 years, 9 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/examples/2d/paint_manager_example.cc ('k') | ppapi/examples/font/simple_font.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/2d/scroll.cc
diff --git a/ppapi/examples/2d/scroll.cc b/ppapi/examples/2d/scroll.cc
index b570ae1b9e33c0abb825198250e8eed2898ea6a0..62a8fce7041f9fa75c669b2f333cd9b459fa00b2 100644
--- a/ppapi/examples/2d/scroll.cc
+++ b/ppapi/examples/2d/scroll.cc
@@ -40,7 +40,7 @@ class MyInstance : public pp::Instance, public pp::PaintManager::Client {
paint_manager_.Initialize(this, this, false);
}
- virtual void ViewChanged(const pp::Rect& position, const pp::Rect& clip) {
+ virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip) {
paint_manager_.SetSize(position.size());
}
@@ -71,7 +71,7 @@ class MyInstance : public pp::Instance, public pp::PaintManager::Client {
}
// Paint the background.
- pp::ImageData updated_image(PP_IMAGEDATAFORMAT_BGRA_PREMUL,
+ pp::ImageData updated_image(this, PP_IMAGEDATAFORMAT_BGRA_PREMUL,
paint_bounds.size(), false);
FillRect(&updated_image, pp::Rect(updated_image.size()), 0xFF8888FF);
« no previous file with comments | « ppapi/examples/2d/paint_manager_example.cc ('k') | ppapi/examples/font/simple_font.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698