| OLD | NEW |
| 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 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // Resource override. | 84 // Resource override. |
| 85 virtual ::ppapi::thunk::PPB_ImageData_API* AsPPB_ImageData_API() OVERRIDE; | 85 virtual ::ppapi::thunk::PPB_ImageData_API* AsPPB_ImageData_API() OVERRIDE; |
| 86 | 86 |
| 87 // PPB_ImageData_API implementation. | 87 // PPB_ImageData_API implementation. |
| 88 virtual PP_Bool Describe(PP_ImageDataDesc* desc) OVERRIDE; | 88 virtual PP_Bool Describe(PP_ImageDataDesc* desc) OVERRIDE; |
| 89 virtual void* Map() OVERRIDE; | 89 virtual void* Map() OVERRIDE; |
| 90 virtual void Unmap() OVERRIDE; | 90 virtual void Unmap() OVERRIDE; |
| 91 virtual int32_t GetSharedMemory(int* handle, uint32_t* byte_count) OVERRIDE; | 91 virtual int32_t GetSharedMemory(int* handle, uint32_t* byte_count) OVERRIDE; |
| 92 virtual SkCanvas* GetPlatformCanvas() OVERRIDE; | 92 virtual SkCanvas* GetPlatformCanvas() OVERRIDE; |
| 93 virtual SkCanvas* GetCanvas() OVERRIDE; | 93 virtual SkCanvas* GetCanvas() OVERRIDE; |
| 94 virtual void SetUsedInReplaceContents() OVERRIDE; |
| 94 | 95 |
| 95 const SkBitmap* GetMappedBitmap() const; | 96 const SkBitmap* GetMappedBitmap() const; |
| 96 | 97 |
| 97 private: | 98 private: |
| 98 PP_ImageDataFormat format_; | 99 PP_ImageDataFormat format_; |
| 99 int width_; | 100 int width_; |
| 100 int height_; | 101 int height_; |
| 101 scoped_ptr<Backend> backend_; | 102 scoped_ptr<Backend> backend_; |
| 102 | 103 |
| 103 DISALLOW_COPY_AND_ASSIGN(PPB_ImageData_Impl); | 104 DISALLOW_COPY_AND_ASSIGN(PPB_ImageData_Impl); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 bool is_valid_; | 195 bool is_valid_; |
| 195 bool needs_unmap_; | 196 bool needs_unmap_; |
| 196 | 197 |
| 197 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); | 198 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 } // namespace ppapi | 201 } // namespace ppapi |
| 201 } // namespace webkit | 202 } // namespace webkit |
| 202 | 203 |
| 203 #endif // WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ | 204 #endif // WEBKIT_PLUGINS_PPAPI_PPB_IMAGE_DATA_IMPL_H_ |
| OLD | NEW |