Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(187)

Side by Side Diff: remoting/client/image_buffer.h

Issue 18233015: Abstract PPAPI's ImageData behind webrtc::DesktopFrame interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698