| 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_CPP_IMAGE_DATA_H_ | 5 #ifndef PPAPI_CPP_IMAGE_DATA_H_ |
| 6 #define PPAPI_CPP_IMAGE_DATA_H_ | 6 #define PPAPI_CPP_IMAGE_DATA_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/ppb_image_data.h" | 8 #include "ppapi/c/ppb_image_data.h" |
| 9 #include "ppapi/cpp/point.h" | 9 #include "ppapi/cpp/point.h" |
| 10 #include "ppapi/cpp/size.h" | 10 #include "ppapi/cpp/size.h" |
| 11 #include "ppapi/cpp/resource.h" | 11 #include "ppapi/cpp/resource.h" |
| 12 | 12 |
| 13 | 13 |
| 14 /// @file | 14 /// @file |
| 15 /// This file defines the APIs for determining how a browser | 15 /// This file defines the APIs for determining how a browser |
| 16 /// handles image data. | 16 /// handles image data. |
| 17 namespace pp { | 17 namespace pp { |
| 18 | 18 |
| 19 class Instance; | 19 class Instance; |
| 20 class Plugin; | |
| 21 | 20 |
| 22 class ImageData : public Resource { | 21 class ImageData : public Resource { |
| 23 public: | 22 public: |
| 24 /// Default constructor for creating an is_null() <code>ImageData</code> | 23 /// Default constructor for creating an is_null() <code>ImageData</code> |
| 25 /// object. | 24 /// object. |
| 26 ImageData(); | 25 ImageData(); |
| 27 | 26 |
| 28 /// A special structure used by the constructor that does not increment the | 27 /// A special structure used by the constructor that does not increment the |
| 29 /// reference count of the underlying Image resource. | 28 /// reference count of the underlying Image resource. |
| 30 struct PassRef {}; | 29 struct PassRef {}; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 private: | 125 private: |
| 127 void PassRefAndInitData(PP_Resource resource); | 126 void PassRefAndInitData(PP_Resource resource); |
| 128 | 127 |
| 129 PP_ImageDataDesc desc_; | 128 PP_ImageDataDesc desc_; |
| 130 void* data_; | 129 void* data_; |
| 131 }; | 130 }; |
| 132 | 131 |
| 133 } // namespace pp | 132 } // namespace pp |
| 134 | 133 |
| 135 #endif // PPAPI_CPP_IMAGE_DATA_H_ | 134 #endif // PPAPI_CPP_IMAGE_DATA_H_ |
| OLD | NEW |