summaryrefslogtreecommitdiffstats
path: root/ppapi/cpp/instance.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-08 05:22:45 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-08 05:22:45 +0000
commit8a855a09b24c77e1b25471a3e3839926630f9e38 (patch)
treefb4a8c175d00726bb6d1924b91322e2209be2875 /ppapi/cpp/instance.cc
parent67512c7eb8d859c2b7b22f38cce2d9562ac049ca (diff)
downloadchromium_src-8a855a09b24c77e1b25471a3e3839926630f9e38.zip
chromium_src-8a855a09b24c77e1b25471a3e3839926630f9e38.tar.gz
chromium_src-8a855a09b24c77e1b25471a3e3839926630f9e38.tar.bz2
Remove PPBoolToBool and BoolToPPBool and use PP_FromBool and PP_ToBool instead.
I will remove ppapi/cpp/common.h when I'm sure nacl doesn't need it. TEST=it compiles BUG=none Review URL: http://codereview.chromium.org/7237039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91809 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/cpp/instance.cc')
-rw-r--r--ppapi/cpp/instance.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/ppapi/cpp/instance.cc b/ppapi/cpp/instance.cc
index f4c8043..ea1e6d5 100644
--- a/ppapi/cpp/instance.cc
+++ b/ppapi/cpp/instance.cc
@@ -8,7 +8,6 @@
#include "ppapi/c/ppb_input_event.h"
#include "ppapi/c/ppb_instance.h"
#include "ppapi/c/ppb_messaging.h"
-#include "ppapi/cpp/common.h"
#include "ppapi/cpp/dev/surface_3d_dev.h"
#include "ppapi/cpp/graphics_2d.h"
#include "ppapi/cpp/image_data.h"
@@ -113,22 +112,21 @@ Var Instance::GetInstanceObject() {
bool Instance::BindGraphics(const Graphics2D& graphics) {
if (!has_interface<PPB_Instance>())
return false;
- return PPBoolToBool(get_interface<PPB_Instance>()->BindGraphics(
+ return PP_ToBool(get_interface<PPB_Instance>()->BindGraphics(
pp_instance(), graphics.pp_resource()));
}
bool Instance::BindGraphics(const Surface3D_Dev& graphics) {
if (!has_interface<PPB_Instance>())
return false;
- return PPBoolToBool(get_interface<PPB_Instance>()->BindGraphics(
+ return PP_ToBool(get_interface<PPB_Instance>()->BindGraphics(
pp_instance(), graphics.pp_resource()));
}
bool Instance::IsFullFrame() {
if (!has_interface<PPB_Instance>())
return false;
- return PPBoolToBool(get_interface<PPB_Instance>()->IsFullFrame(
- pp_instance()));
+ return PP_ToBool(get_interface<PPB_Instance>()->IsFullFrame(pp_instance()));
}
int32_t Instance::RequestInputEvents(uint32_t event_classes) {