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:
Marshall Greenblatt
2017-04-20 15:28:17 -04:00
parent 2f6475c0d8
commit 3f71138d64
151 changed files with 2756 additions and 2295 deletions

View File

@@ -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_;