diff options
Diffstat (limited to 'ppapi/cpp/instance.cc')
-rw-r--r-- | ppapi/cpp/instance.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ppapi/cpp/instance.cc b/ppapi/cpp/instance.cc index 16d7f76..d900c8a 100644 --- a/ppapi/cpp/instance.cc +++ b/ppapi/cpp/instance.cc @@ -6,6 +6,7 @@ #include "ppapi/c/dev/ppp_printing_dev.h" #include "ppapi/c/ppb_instance.h" +#include "ppapi/cpp/common.h" #include "ppapi/cpp/dev/scrollbar_dev.h" #include "ppapi/cpp/dev/widget_dev.h" #include "ppapi/cpp/graphics_2d.h" @@ -83,13 +84,14 @@ Var Instance::GetOwnerElementObject() { bool Instance::BindGraphics(const Graphics2D& graphics) { if (!ppb_instance_f) return false; - return ppb_instance_f->BindGraphics(pp_instance(), graphics.pp_resource()); + return PPBoolToBool(ppb_instance_f->BindGraphics(pp_instance(), + graphics.pp_resource())); } bool Instance::IsFullFrame() { if (!ppb_instance_f) return false; - return ppb_instance_f->IsFullFrame(pp_instance()); + return PPBoolToBool(ppb_instance_f->IsFullFrame(pp_instance())); } Var Instance::ExecuteScript(const Var& script, Var* exception) { |