mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision a106f0ab (#464641)
- Remove CefWindowInfo.transparent_painting_enabled. Set CefBrowserSettings.background_color to an opaque or transparent value instead.
This commit is contained in:
@@ -14,15 +14,10 @@ namespace client {
|
||||
class OsrRenderer {
|
||||
public:
|
||||
struct Settings {
|
||||
Settings();
|
||||
|
||||
// If true use transparent rendering.
|
||||
bool transparent;
|
||||
|
||||
// If true draw a border around update rectangles.
|
||||
bool show_update_rect;
|
||||
|
||||
// Background color.
|
||||
// Background color. Enables transparency if the alpha component is 0.
|
||||
cef_color_t background_color;
|
||||
};
|
||||
|
||||
@@ -53,9 +48,6 @@ class OsrRenderer {
|
||||
void SetSpin(float spinX, float spinY);
|
||||
void IncrementSpin(float spinDX, float spinDY);
|
||||
|
||||
bool IsTransparent() const { return settings_.transparent; }
|
||||
cef_color_t GetBackgroundColor() const { return settings_.background_color; }
|
||||
|
||||
int GetViewWidth() const { return view_width_; }
|
||||
int GetViewHeight() const { return view_height_; }
|
||||
|
||||
@@ -66,6 +58,10 @@ class OsrRenderer {
|
||||
void ClearPopupRects();
|
||||
|
||||
private:
|
||||
inline bool IsTransparent() const {
|
||||
return CefColorGetA(settings_.background_color) == 0;
|
||||
};
|
||||
|
||||
const Settings settings_;
|
||||
bool initialized_;
|
||||
unsigned int texture_id_;
|
||||
|
Reference in New Issue
Block a user