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

Unified Diff: ppapi/proxy/ppb_image_data_proxy.h

Issue 6981001: Make the Pepper proxy support in-process font rendering. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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_font_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_image_data_proxy.h
===================================================================
--- ppapi/proxy/ppb_image_data_proxy.h (revision 84713)
+++ ppapi/proxy/ppb_image_data_proxy.h (working copy)
@@ -19,7 +19,12 @@
#include "ppapi/thunk/ppb_image_data_api.h"
struct PPB_ImageData;
+class TransportDIB;
+namespace skia {
+class PlatformCanvas;
+}
+
namespace pp {
namespace proxy {
@@ -60,6 +65,8 @@
virtual void* Map();
virtual void Unmap();
+ skia::PlatformCanvas* mapped_canvas() const { return mapped_canvas_.get(); }
+
const PP_ImageDataDesc& desc() const { return desc_; }
static const ImageHandle NullHandle;
@@ -67,10 +74,12 @@
private:
PP_ImageDataDesc desc_;
- ImageHandle handle_;
- void* mapped_data_;
+ scoped_ptr<TransportDIB> transport_dib_;
+ // Null when the image isn't mapped.
+ scoped_ptr<skia::PlatformCanvas> mapped_canvas_;
+
DISALLOW_COPY_AND_ASSIGN(ImageData);
};
« no previous file with comments | « ppapi/proxy/ppb_font_proxy.cc ('k') | ppapi/proxy/ppb_image_data_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698