Index: remoting/client/frame_consumer.h |
diff --git a/remoting/client/frame_consumer.h b/remoting/client/frame_consumer.h |
index 4df75950a0f081c153a034aa069847a7d670468a..165ceddee30aa3a3a72f38f2b1e033472332a2d2 100644 |
--- a/remoting/client/frame_consumer.h |
+++ b/remoting/client/frame_consumer.h |
@@ -19,6 +19,13 @@ namespace remoting { |
class FrameConsumer { |
public: |
+ |
+ // List of supported pixel formats needed by various platforms. |
+ enum PixelFormat { |
+ FORMAT_BGRA, // Used by the Pepper plugin. |
+ FORMAT_RGBA, // Used for Android's Bitmap class. |
+ }; |
+ |
// Accepts a buffer to be painted to the screen. The buffer's dimensions and |
// relative position within the frame are specified by |clip_area|. Only |
// pixels falling within |region| and the current clipping area are painted. |
@@ -41,6 +48,9 @@ class FrameConsumer { |
virtual void SetSourceSize(const webrtc::DesktopSize& source_size, |
const webrtc::DesktopVector& dpi) = 0; |
+ // Returns the preferred pixel encoding for the platform. |
+ virtual PixelFormat GetPixelFormat() = 0; |
+ |
protected: |
FrameConsumer() {} |
virtual ~FrameConsumer() {} |