| 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 CONTENT_RENDERER_PEPPER_PPB_IMAGE_DATA_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PPB_IMAGE_DATA_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PPB_IMAGE_DATA_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "content/renderer/pepper/plugin_delegate.h" | |
| 12 #include "ppapi/c/ppb_image_data.h" | 11 #include "ppapi/c/ppb_image_data.h" |
| 13 #include "ppapi/shared_impl/ppb_image_data_shared.h" | 12 #include "ppapi/shared_impl/ppb_image_data_shared.h" |
| 14 #include "ppapi/shared_impl/resource.h" | 13 #include "ppapi/shared_impl/resource.h" |
| 15 #include "ppapi/thunk/ppb_image_data_api.h" | 14 #include "ppapi/thunk/ppb_image_data_api.h" |
| 16 #include "third_party/skia/include/core/SkCanvas.h" | 15 #include "third_party/skia/include/core/SkCanvas.h" |
| 17 | 16 |
| 18 class SkBitmap; | 17 class SkBitmap; |
| 19 class SkCanvas; | 18 class SkCanvas; |
| 20 class TransportDIB; | 19 class TransportDIB; |
| 21 | 20 |
| 21 namespace base { |
| 22 class SharedMemory; |
| 23 } |
| 24 |
| 22 namespace content { | 25 namespace content { |
| 23 | 26 |
| 24 class CONTENT_EXPORT PPB_ImageData_Impl | 27 class CONTENT_EXPORT PPB_ImageData_Impl |
| 25 : public ::ppapi::Resource, | 28 : public ::ppapi::Resource, |
| 26 public ::ppapi::PPB_ImageData_Shared, | 29 public ::ppapi::PPB_ImageData_Shared, |
| 27 public NON_EXPORTED_BASE(::ppapi::thunk::PPB_ImageData_API) { | 30 public NON_EXPORTED_BASE(::ppapi::thunk::PPB_ImageData_API) { |
| 28 public: | 31 public: |
| 29 // We delegate most of our implementation to a back-end class that either uses | 32 // We delegate most of our implementation to a back-end class that either uses |
| 30 // a PlatformCanvas (for most trusted stuff) or bare shared memory (for use by | 33 // a PlatformCanvas (for most trusted stuff) or bare shared memory (for use by |
| 31 // NaCl, or trusted plugins when the PlatformCanvas isn't needed). This makes | 34 // NaCl, or trusted plugins when the PlatformCanvas isn't needed). This makes |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 PPB_ImageData_Impl* image_data_; | 192 PPB_ImageData_Impl* image_data_; |
| 190 bool is_valid_; | 193 bool is_valid_; |
| 191 bool needs_unmap_; | 194 bool needs_unmap_; |
| 192 | 195 |
| 193 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); | 196 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); |
| 194 }; | 197 }; |
| 195 | 198 |
| 196 } // namespace content | 199 } // namespace content |
| 197 | 200 |
| 198 #endif // CONTENT_RENDERER_PEPPER_PPB_IMAGE_DATA_IMPL_H_ | 201 #endif // CONTENT_RENDERER_PEPPER_PPB_IMAGE_DATA_IMPL_H_ |
| OLD | NEW |