| 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 WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "ppapi/c/ppb_image_data.h" | 10 #include "ppapi/c/ppb_image_data.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 PluginDelegate::PlatformImage2D* platform_image() const { | 47 PluginDelegate::PlatformImage2D* platform_image() const { |
| 48 return platform_image_.get(); | 48 return platform_image_.get(); |
| 49 } | 49 } |
| 50 | 50 |
| 51 // Returns a pointer to the interface implementing PPB_ImageData that is | 51 // Returns a pointer to the interface implementing PPB_ImageData that is |
| 52 // exposed to the plugin. | 52 // exposed to the plugin. |
| 53 static const PPB_ImageData* GetInterface(); | 53 static const PPB_ImageData* GetInterface(); |
| 54 static const PPB_ImageDataTrusted* GetTrustedInterface(); | 54 static const PPB_ImageDataTrusted* GetTrustedInterface(); |
| 55 | 55 |
| 56 virtual ::ppapi::thunk::PPB_ImageData_API* AsPPB_ImageData_API(); | 56 virtual ::ppapi::thunk::PPB_ImageData_API* AsImageData_API(); |
| 57 | 57 |
| 58 // Resource overrides. | 58 // Resource overrides. |
| 59 virtual PPB_ImageData_Impl* AsPPB_ImageData_Impl(); | 59 virtual PPB_ImageData_Impl* AsPPB_ImageData_Impl(); |
| 60 | 60 |
| 61 // PPB_ImageData_API implementation. | 61 // PPB_ImageData_API implementation. |
| 62 virtual PP_Bool Describe(PP_ImageDataDesc* desc); | 62 virtual PP_Bool Describe(PP_ImageDataDesc* desc); |
| 63 virtual void* Map(); | 63 virtual void* Map(); |
| 64 virtual void Unmap(); | 64 virtual void Unmap(); |
| 65 | 65 |
| 66 // PPB_ImageDataTrusted implementation. | 66 // PPB_ImageDataTrusted implementation. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 bool is_valid_; | 124 bool is_valid_; |
| 125 bool needs_unmap_; | 125 bool needs_unmap_; |
| 126 | 126 |
| 127 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); | 127 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 } // namespace ppapi | 130 } // namespace ppapi |
| 131 } // namespace webkit | 131 } // namespace webkit |
| 132 | 132 |
| 133 #endif // WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ | 133 #endif // WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ |
| OLD | NEW |