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

Unified Diff: ppapi/thunk/ppb_image_data_api.h

Issue 1145893009: Change transport dib API to not make copies of SharedMemoryHandle. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shared_memory_pepper_rename
Patch Set: Comments from jbauman. Created 5 years, 7 months 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/proxy/ppb_image_data_proxy.cc ('k') | ui/surface/transport_dib.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_image_data_api.h
diff --git a/ppapi/thunk/ppb_image_data_api.h b/ppapi/thunk/ppb_image_data_api.h
index 8bf2078fdaeb46ca292881fbee6e9e0e67ce540f..5428ded250c4b5cff0e7e65720a1d5592011176e 100644
--- a/ppapi/thunk/ppb_image_data_api.h
+++ b/ppapi/thunk/ppb_image_data_api.h
@@ -5,12 +5,15 @@
#ifndef PPAPI_THUNK_PPB_IMAGE_DATA_API_H_
#define PPAPI_THUNK_PPB_IMAGE_DATA_API_H_
-#include "base/memory/shared_memory.h"
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/ppb_image_data.h"
class SkCanvas;
+namespace base {
+class SharedMemory;
+} // namespace base
+
namespace ppapi {
namespace thunk {
@@ -23,7 +26,7 @@ class PPB_ImageData_API {
virtual void Unmap() = 0;
// Trusted inteface.
- virtual int32_t GetSharedMemory(base::SharedMemoryHandle* handle,
+ virtual int32_t GetSharedMemory(base::SharedMemory** shm,
uint32_t* byte_count) = 0;
// Get the platform-specific canvas that backs this ImageData, if there is
« no previous file with comments | « ppapi/proxy/ppb_image_data_proxy.cc ('k') | ui/surface/transport_dib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698