summaryrefslogtreecommitdiffstats
path: root/ppapi/example
diff options
context:
space:
mode:
authormball@google.com <mball@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 16:24:29 +0000
committermball@google.com <mball@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-14 16:24:29 +0000
commit33983ac29092a3cc5d3390c6d54719483d6a6d4d (patch)
tree95c7c95f2bfd1a9615002cc554458d612152d0ce /ppapi/example
parent15309df8c0c130de8f09ab8a1a2d6eef6245ae55 (diff)
downloadchromium_src-33983ac29092a3cc5d3390c6d54719483d6a6d4d.zip
chromium_src-33983ac29092a3cc5d3390c6d54719483d6a6d4d.tar.gz
chromium_src-33983ac29092a3cc5d3390c6d54719483d6a6d4d.tar.bz2
Removed MemAlloc and MemFree from PPB_Core
BUG=81610 TEST=Trybots Review URL: http://codereview.chromium.org/7349016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/example')
-rw-r--r--ppapi/example/example.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc
index 3eaafcd..2b5ab76 100644
--- a/ppapi/example/example.cc
+++ b/ppapi/example/example.cc
@@ -19,6 +19,7 @@
#include "ppapi/c/pp_errors.h"
#include "ppapi/c/pp_rect.h"
#include "ppapi/cpp/completion_callback.h"
+#include "ppapi/cpp/dev/memory_dev.h"
#include "ppapi/cpp/dev/scriptable_object_deprecated.h"
#include "ppapi/cpp/graphics_2d.h"
#include "ppapi/cpp/image_data.h"
@@ -327,12 +328,13 @@ int gettimeofday(struct timeval *tv, struct timezone*) {
}
// Print interfaces.
+ // TODO(mball,dmichael) Replace this with the PPP_PRINTING_DEV_USE_0_4 version
virtual PP_PrintOutputFormat_Dev* QuerySupportedPrintOutputFormats(
uint32_t* format_count) {
+ pp::Memory_Dev memory;
PP_PrintOutputFormat_Dev* format =
- reinterpret_cast<PP_PrintOutputFormat_Dev*>(
- pp::Module::Get()->core()->MemAlloc(
- sizeof(PP_PrintOutputFormat_Dev)));
+ static_cast<PP_PrintOutputFormat_Dev*>(
+ memory.MemAlloc(sizeof(PP_PrintOutputFormat_Dev)));
*format = PP_PRINTOUTPUTFORMAT_RASTER;
*format_count = 1;
return format;