summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 22:08:22 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-28 22:08:22 +0000
commitf8f1a565e576fa56543147393c1a8269fe6a82e2 (patch)
treec15f8b3265f0b74dc766e40513c0a05111f69d7d /webkit
parent2254fa752d20dd4bfa6cb152c978e31408573e18 (diff)
downloadchromium_src-f8f1a565e576fa56543147393c1a8269fe6a82e2.zip
chromium_src-f8f1a565e576fa56543147393c1a8269fe6a82e2.tar.gz
chromium_src-f8f1a565e576fa56543147393c1a8269fe6a82e2.tar.bz2
Revert 60850 (broke build) - Implement PPB_ImageDataTrusted on the Chrome side. This just connects the call
to the existing backend implementation. Review URL: http://codereview.chromium.org/3473021 TBR=brettw@chromium.org Review URL: http://codereview.chromium.org/3522002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/plugins/pepper_image_data.cc21
-rw-r--r--webkit/glue/plugins/pepper_image_data.h5
-rw-r--r--webkit/glue/plugins/pepper_plugin_module.cc3
3 files changed, 0 insertions, 29 deletions
diff --git a/webkit/glue/plugins/pepper_image_data.cc b/webkit/glue/plugins/pepper_image_data.cc
index aeb2c88..d3246c2 100644
--- a/webkit/glue/plugins/pepper_image_data.cc
+++ b/webkit/glue/plugins/pepper_image_data.cc
@@ -14,7 +14,6 @@
#include "third_party/ppapi/c/pp_module.h"
#include "third_party/ppapi/c/pp_resource.h"
#include "third_party/ppapi/c/ppb_image_data.h"
-#include "third_party/ppapi/c/trusted/ppb_image_data_trusted.h"
#include "webkit/glue/plugins/pepper_plugin_instance.h"
#include "webkit/glue/plugins/pepper_plugin_module.h"
@@ -69,13 +68,6 @@ void Unmap(PP_Resource resource) {
image_data->Unmap();
}
-uint64_t GetNativeMemoryHandle2(PP_Resource resource) {
- scoped_refptr<ImageData> image_data(Resource::GetAs<ImageData>(resource));
- if (image_data)
- return image_data->GetNativeMemoryHandle();
- return 0;
-}
-
const PPB_ImageData ppb_imagedata = {
&GetNativeImageDataFormat,
&Create,
@@ -85,10 +77,6 @@ const PPB_ImageData ppb_imagedata = {
&Unmap,
};
-const PPB_ImageDataTrusted ppb_imagedata_trusted = {
- &GetNativeMemoryHandle2,
-};
-
} // namespace
ImageData::ImageData(PluginModule* module)
@@ -105,11 +93,6 @@ const PPB_ImageData* ImageData::GetInterface() {
return &ppb_imagedata;
}
-// static
-const PPB_ImageDataTrusted* ImageData::GetTrustedInterface() {
- return &ppb_imagedata_trusted;
-}
-
bool ImageData::Init(PP_ImageDataFormat format,
int width, int height,
bool init_to_zero) {
@@ -160,10 +143,6 @@ void ImageData::Unmap() {
// in the future to save some memory.
}
-uint64 ImageData::GetNativeMemoryHandle() const {
- return platform_image_->GetSharedMemoryHandle();
-}
-
const SkBitmap* ImageData::GetMappedBitmap() const {
if (!mapped_canvas_.get())
return NULL;
diff --git a/webkit/glue/plugins/pepper_image_data.h b/webkit/glue/plugins/pepper_image_data.h
index 4fc66f5..04d769c 100644
--- a/webkit/glue/plugins/pepper_image_data.h
+++ b/webkit/glue/plugins/pepper_image_data.h
@@ -15,7 +15,6 @@ namespace skia {
class PlatformCanvas;
}
-class PPB_ImageDataTrusted;
class SkBitmap;
namespace pepper {
@@ -45,7 +44,6 @@ class ImageData : public Resource {
// Returns a pointer to the interface implementing PPB_ImageData that is
// exposed to the plugin.
static const PPB_ImageData* GetInterface();
- static const PPB_ImageDataTrusted* GetTrustedInterface();
// Resource overrides.
virtual ImageData* AsImageData() { return this; }
@@ -58,9 +56,6 @@ class ImageData : public Resource {
void* Map();
void Unmap();
- // PPB_ImageDataTrusted implementation.
- uint64 GetNativeMemoryHandle() const;
-
// The mapped bitmap and canvas will be NULL if the image is not mapped.
skia::PlatformCanvas* mapped_canvas() const { return mapped_canvas_.get(); }
const SkBitmap* GetMappedBitmap() const;
diff --git a/webkit/glue/plugins/pepper_plugin_module.cc b/webkit/glue/plugins/pepper_plugin_module.cc
index 251023f..e43735f 100644
--- a/webkit/glue/plugins/pepper_plugin_module.cc
+++ b/webkit/glue/plugins/pepper_plugin_module.cc
@@ -34,7 +34,6 @@
#include "third_party/ppapi/c/dev/ppb_url_util_dev.h"
#include "third_party/ppapi/c/dev/ppb_video_decoder_dev.h"
#include "third_party/ppapi/c/dev/ppb_widget_dev.h"
-#include "third_party/ppapi/c/trusted/ppb_image_data_trusted.h"
#include "third_party/ppapi/c/pp_module.h"
#include "third_party/ppapi/c/pp_resource.h"
#include "third_party/ppapi/c/pp_var.h"
@@ -210,8 +209,6 @@ const void* GetInterface(const char* name) {
return PluginInstance::GetInterface();
if (strcmp(name, PPB_IMAGEDATA_INTERFACE) == 0)
return ImageData::GetInterface();
- if (strcmp(name, PPB_IMAGEDATA_TRUSTED_INTERFACE) == 0)
- return ImageData::GetTrustedInterface();
if (strcmp(name, PPB_AUDIO_CONFIG_DEV_INTERFACE) == 0)
return AudioConfig::GetInterface();
if (strcmp(name, PPB_AUDIO_DEV_INTERFACE) == 0)