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

Unified Diff: ppapi/cpp/dev/graphics_3d_dev.cc

Issue 4310002: Make PPAPI headers compile with C compilers (gcc on Linux & Mac and MSVS on W... (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « ppapi/cpp/dev/fullscreen_dev.cc ('k') | ppapi/cpp/dev/scrollbar_dev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/graphics_3d_dev.cc
===================================================================
--- ppapi/cpp/dev/graphics_3d_dev.cc (revision 65116)
+++ ppapi/cpp/dev/graphics_3d_dev.cc (working copy)
@@ -4,6 +4,7 @@
#include "ppapi/cpp/dev/graphics_3d_dev.h"
+#include "ppapi/cpp/common.h"
#include "ppapi/cpp/instance.h"
#include "ppapi/cpp/resource.h"
#include "ppapi/cpp/module.h"
@@ -30,25 +31,34 @@
// static
bool Graphics3D_Dev::GetConfigs(int32_t *configs, int32_t config_size,
int32_t *num_config) {
- if (graphics_3d_f)
- return graphics_3d_f->GetConfigs(configs, config_size, num_config);
+ if (graphics_3d_f) {
+ return PPBoolToBool(graphics_3d_f->GetConfigs(configs,
+ config_size,
+ num_config));
+ }
return false;
}
// static
bool Graphics3D_Dev::ChooseConfig(const int32_t *attrib_list, int32_t *configs,
int32_t config_size, int32_t *num_config) {
- if (graphics_3d_f)
- return graphics_3d_f->ChooseConfig(attrib_list, configs, config_size,
- num_config);
+ if (graphics_3d_f) {
+ return PPBoolToBool(graphics_3d_f->ChooseConfig(attrib_list,
+ configs,
+ config_size,
+ num_config));
+ }
return false;
}
// static
bool Graphics3D_Dev::GetConfigAttrib(int32_t config, int32_t attribute,
int32_t *value) {
- if (graphics_3d_f)
- return graphics_3d_f->GetConfigAttrib(config, attribute, value);
+ if (graphics_3d_f) {
+ return PPBoolToBool(graphics_3d_f->GetConfigAttrib(config,
+ attribute,
+ value));
+ }
return false;
}
@@ -114,4 +124,3 @@
}
} // namespace pp
-
« no previous file with comments | « ppapi/cpp/dev/fullscreen_dev.cc ('k') | ppapi/cpp/dev/scrollbar_dev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698