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

Unified Diff: remoting/client/plugin/pepper_view.cc

Issue 3255003: Pull new PPAPI, rename non-P0 interfaces to Dev, rename DeviceContext2D to Gr... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 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 | « remoting/client/plugin/pepper_view.h ('k') | webkit/glue/plugins/pepper_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/pepper_view.cc
===================================================================
--- remoting/client/plugin/pepper_view.cc (revision 57791)
+++ remoting/client/plugin/pepper_view.cc (working copy)
@@ -7,7 +7,7 @@
#include "base/message_loop.h"
#include "remoting/client/plugin/chromoting_instance.h"
#include "remoting/client/plugin/pepper_util.h"
-#include "third_party/ppapi/cpp/device_context_2d.h"
+#include "third_party/ppapi/cpp/graphics_2d.h"
#include "third_party/ppapi/cpp/image_data.h"
#include "third_party/ppapi/cpp/point.h"
#include "third_party/ppapi/cpp/size.h"
@@ -15,13 +15,13 @@
namespace remoting {
PepperView::PepperView(ChromotingInstance* instance)
- : instance_(instance),
- viewport_x_(0),
- viewport_y_(0),
- viewport_width_(0),
- viewport_height_(0),
- is_static_fill_(false),
- static_fill_color_(0) {
+ : instance_(instance),
+ viewport_x_(0),
+ viewport_y_(0),
+ viewport_width_(0),
+ viewport_height_(0),
+ is_static_fill_(false),
+ static_fill_color_(0) {
}
PepperView::~PepperView() {
@@ -117,8 +117,8 @@
viewport_height_ = height;
device_context_ =
- pp::DeviceContext2D(pp::Size(viewport_width_, viewport_height_), false);
- if (!instance_->BindGraphicsDeviceContext(device_context_)) {
+ pp::Graphics2D(pp::Size(viewport_width_, viewport_height_), false);
+ if (!instance_->BindGraphics(device_context_)) {
LOG(ERROR) << "Couldn't bind the device context.";
return;
}
« no previous file with comments | « remoting/client/plugin/pepper_view.h ('k') | webkit/glue/plugins/pepper_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698