OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_PLUGINS_PEPPER_IMAGE_DATA_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_IMAGE_DATA_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_IMAGE_DATA_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_IMAGE_DATA_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "third_party/ppapi/c/ppb_image_data.h" | 10 #include "third_party/ppapi/c/ppb_image_data.h" |
11 #include "webkit/glue/plugins/pepper_plugin_delegate.h" | 11 #include "webkit/glue/plugins/pepper_plugin_delegate.h" |
12 #include "webkit/glue/plugins/pepper_resource.h" | 12 #include "webkit/glue/plugins/pepper_resource.h" |
13 | 13 |
14 namespace skia { | 14 namespace skia { |
15 class PlatformCanvas; | 15 class PlatformCanvas; |
16 } | 16 } |
17 | 17 |
18 class SkBitmap; | 18 class SkBitmap; |
19 | 19 |
20 namespace pepper { | 20 namespace pepper { |
21 | 21 |
22 class PluginInstance; | |
23 | |
24 class ImageData : public Resource { | 22 class ImageData : public Resource { |
25 public: | 23 public: |
26 explicit ImageData(PluginModule* module); | 24 explicit ImageData(PluginModule* module); |
27 virtual ~ImageData(); | 25 virtual ~ImageData(); |
28 | 26 |
29 int width() const { return width_; } | 27 int width() const { return width_; } |
30 int height() const { return height_; } | 28 int height() const { return height_; } |
31 | 29 |
32 // Returns the image format. Currently there is only one format so this | 30 // Returns the image format. Currently there is only one format so this |
33 // always returns the same thing. But if you care about the formation, you | 31 // always returns the same thing. But if you care about the formation, you |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 ImageData* image_data_; | 107 ImageData* image_data_; |
110 bool is_valid_; | 108 bool is_valid_; |
111 bool needs_unmap_; | 109 bool needs_unmap_; |
112 | 110 |
113 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); | 111 DISALLOW_COPY_AND_ASSIGN(ImageDataAutoMapper); |
114 }; | 112 }; |
115 | 113 |
116 } // namespace pepper | 114 } // namespace pepper |
117 | 115 |
118 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_IMAGE_DATA_H_ | 116 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_IMAGE_DATA_H_ |
OLD | NEW |