| Index: ppapi/example/example.cc
|
| diff --git a/ppapi/example/example.cc b/ppapi/example/example.cc
|
| index 1eec31789c7e9a541ca98a926b66b40edd40e04c..0caceff6a97d8a5caa3a16b66cddd0f64425980d 100644
|
| --- a/ppapi/example/example.cc
|
| +++ b/ppapi/example/example.cc
|
| @@ -328,16 +328,8 @@ 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 =
|
| - static_cast<PP_PrintOutputFormat_Dev*>(
|
| - memory.MemAlloc(sizeof(PP_PrintOutputFormat_Dev)));
|
| - *format = PP_PRINTOUTPUTFORMAT_RASTER;
|
| - *format_count = 1;
|
| - return format;
|
| + virtual uint32_t QuerySupportedPrintOutputFormats() {
|
| + return PP_PRINTOUTPUTFORMAT_RASTER;
|
| }
|
|
|
| virtual int32_t PrintBegin(const PP_PrintSettings_Dev& print_settings) {
|
| @@ -378,6 +370,10 @@ int gettimeofday(struct timeval *tv, struct timezone*) {
|
| print_settings_valid_ = false;
|
| }
|
|
|
| + virtual bool IsScalingDisabled() {
|
| + return false;
|
| + }
|
| +
|
| void OnFlush() {
|
| if (animation_counter_ % kStepsPerCircle == 0)
|
| UpdateFps();
|
|
|