| 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);
|
|
|
|
|