| OLD | NEW |
| (Empty) | |
| 1 #ifndef REMOTING_CLIENT_IMAGE_BUFFER_H_ |
| 2 #define REMOTING_CLIENT_IMAGE_BUFFER_H_ |
| 3 |
| 4 #include "base/basictypes.h" |
| 5 #include "base/compiler_specific.h" |
| 6 |
| 7 namespace remoting { |
| 8 |
| 9 // Interface that abstracts the allocation and storage of raw image data. |
| 10 class ImageBuffer { |
| 11 public: |
| 12 // Returns true if the instance is uninitialized or otherwise not ready. |
| 13 virtual bool is_null() = 0; |
| 14 |
| 15 // Provides access to the memory block of image data. |
| 16 virtual uint8* data() = 0; |
| 17 |
| 18 // The width of the image that can be stored in this buffer, in pixels/ints. |
| 19 virtual int width() = 0; |
| 20 |
| 21 // The height of the image that can be stored in this buffer, in pixels/ints. |
| 22 virtual int height() = 0; |
| 23 |
| 24 // The (contiguous) space allocated for each row of the image, in bytes. |
| 25 virtual int32 stride() = 0; |
| 26 }; |
| 27 |
| 28 } // namespace remoting |
| 29 |
| 30 #endif |
| OLD | NEW |