mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Merge revision 643 and revision 648 changes:
- Improve the cefclient transparency test by adding the ability to view individual pixel values (issue #584). - Change cefclient off-screen rendering example to account for premultiplied alpha values (issue #584). git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1025@649 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -40,6 +40,13 @@ class ClientOSRenderer {
|
||||
void SetSpin(float spinX, float spinY);
|
||||
void IncrementSpin(float spinDX, float spinDY);
|
||||
|
||||
// Retrieve the pixel value from the view buffer. |x| and |y| are relative to
|
||||
// the upper-left corner of the view.
|
||||
bool GetPixelValue(int x, int y, unsigned char& r, unsigned char& g,
|
||||
unsigned char& b, unsigned char& a);
|
||||
|
||||
bool IsTransparent() { return transparent_; }
|
||||
|
||||
private:
|
||||
void SetBufferSize(int width, int height, bool view);
|
||||
void SetRGBA(const void* src, int width, int height, bool view);
|
||||
|
Reference in New Issue
Block a user