Index: ppapi/examples/2d/paint_manager_example.cc |
diff --git a/ppapi/examples/2d/paint_manager_example.cc b/ppapi/examples/2d/paint_manager_example.cc |
index d3530cb33c8e4f6e508b19f6898e9bb744ca3b26..86bdbe79ed8f9f2a8e820cd682f24c57cbb413d7 100644 |
--- a/ppapi/examples/2d/paint_manager_example.cc |
+++ b/ppapi/examples/2d/paint_manager_example.cc |
@@ -9,6 +9,7 @@ |
#include "ppapi/cpp/instance.h" |
#include "ppapi/cpp/module.h" |
#include "ppapi/cpp/size.h" |
+#include "ppapi/cpp/view.h" |
#include "ppapi/utility/graphics/paint_manager.h" |
// Number of pixels to each side of the center of the square that we draw. |
@@ -70,8 +71,8 @@ class MyInstance : public pp::Instance, public pp::PaintManager::Client { |
} |
} |
- virtual void DidChangeView(const pp::Rect& position, const pp::Rect& clip) { |
- paint_manager_.SetSize(position.size()); |
+ virtual void DidChangeView(const pp::View& view) { |
+ paint_manager_.SetSize(view.GetRect().size()); |
} |
// PaintManager::Client implementation. |