mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefclient: Support dynamic configuration of the device scale factor with off-screen rendering (issue #1674)
This commit is contained in:
@@ -38,6 +38,8 @@ class BrowserWindowOsrWin : public BrowserWindow,
|
||||
void Hide() OVERRIDE;
|
||||
void SetBounds(int x, int y, size_t width, size_t height) OVERRIDE;
|
||||
void SetFocus(bool focus) OVERRIDE;
|
||||
void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE;
|
||||
float GetDeviceScaleFactor() const OVERRIDE;
|
||||
ClientWindowHandle GetWindowHandle() const OVERRIDE;
|
||||
|
||||
private:
|
||||
@@ -53,6 +55,8 @@ class BrowserWindowOsrWin : public BrowserWindow,
|
||||
scoped_refptr<OsrWindowWin> osr_window_;
|
||||
HWND osr_hwnd_;
|
||||
|
||||
float device_scale_factor_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(BrowserWindowOsrWin);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user