OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/scoped_ptr.h" | 8 #include "base/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" |
11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
12 #include "ppapi/c/pp_module.h" | 12 #include "ppapi/c/pp_module.h" |
13 #include "ppapi/c/pp_resource.h" | 13 #include "ppapi/c/pp_resource.h" |
14 #include "ppapi/c/pp_size.h" | 14 #include "ppapi/c/pp_size.h" |
15 #include "ppapi/c/pp_var.h" | 15 #include "ppapi/c/pp_var.h" |
16 #include "ppapi/proxy/interface_proxy.h" | 16 #include "ppapi/proxy/interface_proxy.h" |
17 #include "ppapi/proxy/serialized_structs.h" | 17 #include "ppapi/proxy/serialized_structs.h" |
18 #include "ppapi/shared_impl/image_data_impl.h" | 18 #include "ppapi/shared_impl/image_data_impl.h" |
19 #include "ppapi/shared_impl/resource.h" | 19 #include "ppapi/shared_impl/resource.h" |
20 #include "ppapi/thunk/ppb_image_data_api.h" | 20 #include "ppapi/thunk/ppb_image_data_api.h" |
21 | 21 |
22 struct PPB_ImageData; | 22 struct PPB_ImageData; |
23 class TransportDIB; | 23 class TransportDIB; |
24 | 24 |
25 namespace ppapi { | |
26 class HostResource; | |
27 } | |
28 | |
29 namespace skia { | 25 namespace skia { |
30 class PlatformCanvas; | 26 class PlatformCanvas; |
31 } | 27 } |
32 | 28 |
33 namespace pp { | 29 namespace ppapi { |
| 30 |
| 31 class HostResource; |
| 32 |
34 namespace proxy { | 33 namespace proxy { |
35 | 34 |
36 class PPB_ImageData_Proxy : public InterfaceProxy { | 35 class PPB_ImageData_Proxy : public InterfaceProxy { |
37 public: | 36 public: |
38 PPB_ImageData_Proxy(Dispatcher* dispatcher, const void* target_interface); | 37 PPB_ImageData_Proxy(Dispatcher* dispatcher, const void* target_interface); |
39 virtual ~PPB_ImageData_Proxy(); | 38 virtual ~PPB_ImageData_Proxy(); |
40 | 39 |
41 static const Info* GetInfo(); | 40 static const Info* GetInfo(); |
42 | 41 |
43 const PPB_ImageData* ppb_image_data_target() const { | 42 const PPB_ImageData* ppb_image_data_target() const { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 77 |
79 scoped_ptr<TransportDIB> transport_dib_; | 78 scoped_ptr<TransportDIB> transport_dib_; |
80 | 79 |
81 // Null when the image isn't mapped. | 80 // Null when the image isn't mapped. |
82 scoped_ptr<skia::PlatformCanvas> mapped_canvas_; | 81 scoped_ptr<skia::PlatformCanvas> mapped_canvas_; |
83 | 82 |
84 DISALLOW_COPY_AND_ASSIGN(ImageData); | 83 DISALLOW_COPY_AND_ASSIGN(ImageData); |
85 }; | 84 }; |
86 | 85 |
87 } // namespace proxy | 86 } // namespace proxy |
88 } // namespace pp | 87 } // namespace ppapi |
89 | 88 |
90 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_ | 89 #endif // PPAPI_PPB_IMAGE_DATA_PROXY_H_ |
OLD | NEW |