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

Side by Side Diff: ppapi/proxy/ppb_image_data_proxy.h

Issue 9192038: Relanding this with fixes to the mac dbg builder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_PPB_IMAGE_DATA_PROXY_H_ 5 #ifndef PPAPI_PPB_IMAGE_DATA_PROXY_H_
6 #define PPAPI_PPB_IMAGE_DATA_PROXY_H_ 6 #define PPAPI_PPB_IMAGE_DATA_PROXY_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ppapi/c/pp_bool.h" 9 #include "ppapi/c/pp_bool.h"
10 #include "ppapi/c/pp_completion_callback.h" 10 #include "ppapi/c/pp_completion_callback.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual ~ImageData(); 44 virtual ~ImageData();
45 45
46 // Resource overrides. 46 // Resource overrides.
47 virtual ppapi::thunk::PPB_ImageData_API* AsPPB_ImageData_API() OVERRIDE; 47 virtual ppapi::thunk::PPB_ImageData_API* AsPPB_ImageData_API() OVERRIDE;
48 48
49 // PPB_ImageData API. 49 // PPB_ImageData API.
50 virtual PP_Bool Describe(PP_ImageDataDesc* desc) OVERRIDE; 50 virtual PP_Bool Describe(PP_ImageDataDesc* desc) OVERRIDE;
51 virtual void* Map() OVERRIDE; 51 virtual void* Map() OVERRIDE;
52 virtual void Unmap() OVERRIDE; 52 virtual void Unmap() OVERRIDE;
53 virtual int32_t GetSharedMemory(int* handle, uint32_t* byte_count) OVERRIDE; 53 virtual int32_t GetSharedMemory(int* handle, uint32_t* byte_count) OVERRIDE;
54 54 virtual skia::PlatformCanvas* GetPlatformCanvas() OVERRIDE;
55 skia::PlatformCanvas* mapped_canvas() const { return mapped_canvas_.get(); }
56 55
57 const PP_ImageDataDesc& desc() const { return desc_; } 56 const PP_ImageDataDesc& desc() const { return desc_; }
58 57
59 static const ImageHandle NullHandle; 58 static const ImageHandle NullHandle;
60 static ImageHandle HandleFromInt(int32_t i); 59 static ImageHandle HandleFromInt(int32_t i);
61 60
62 private: 61 private:
63 PP_ImageDataDesc desc_; 62 PP_ImageDataDesc desc_;
64 63
65 scoped_ptr<TransportDIB> transport_dib_; 64 scoped_ptr<TransportDIB> transport_dib_;
(...skipping 29 matching lines...) Expand all
95 std::string* image_data_desc, 94 std::string* image_data_desc,
96 ImageHandle* result_image_handle); 95 ImageHandle* result_image_handle);
97 96
98 DISALLOW_COPY_AND_ASSIGN(PPB_ImageData_Proxy); 97 DISALLOW_COPY_AND_ASSIGN(PPB_ImageData_Proxy);
99 }; 98 };
100 99
101 } // namespace proxy 100 } // namespace proxy
102 } // namespace ppapi 101 } // namespace ppapi
103 102
104 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_ 103 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_
OLDNEW
« 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