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

Unified Diff: ppapi/cpp/instance.cc

Issue 3531008: Integrated Pepper3D v2 with the accelerated compositor.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
Index: ppapi/cpp/instance.cc
===================================================================
--- ppapi/cpp/instance.cc (revision 65093)
+++ ppapi/cpp/instance.cc (working copy)
@@ -6,6 +6,7 @@
#include "ppapi/c/dev/ppp_printing_dev.h"
#include "ppapi/c/ppb_instance.h"
+#include "ppapi/cpp/dev/graphics_3d_dev.h"
#include "ppapi/cpp/dev/scrollbar_dev.h"
#include "ppapi/cpp/dev/widget_dev.h"
#include "ppapi/cpp/graphics_2d.h"
@@ -86,6 +87,12 @@
return ppb_instance_f->BindGraphics(pp_instance(), graphics.pp_resource());
}
+bool Instance::BindGraphics(const Graphics3D_Dev& graphics) {
+ if (!ppb_instance_f)
+ return false;
+ return ppb_instance_f->BindGraphics(pp_instance(), graphics.pp_resource());
+}
+
bool Instance::IsFullFrame() {
if (!ppb_instance_f)
return false;

Powered by Google App Engine
This is Rietveld 408576698