mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Adds support for the OnAcceleratedPaint callback. Verified to work on macOS and Windows. Linux support is present but not implemented for cefclient, so it is not verified to work. To test: Run `cefclient --off-screen-rendering-enabled --shared-texture-enabled`
This commit is contained in:
committed by
Marshall Greenblatt
parent
dca0435d2f
commit
260dd0ca24
@@ -49,6 +49,14 @@ class OsrRenderer {
|
||||
int width,
|
||||
int height);
|
||||
|
||||
// Used when rendering with shared textures.
|
||||
void OnAcceleratedPaint(CefRefPtr<CefBrowser> browser,
|
||||
CefRenderHandler::PaintElementType type,
|
||||
const CefRenderHandler::RectList& dirtyRects,
|
||||
unsigned int io_surface_tex,
|
||||
int width,
|
||||
int height);
|
||||
|
||||
// Apply spin.
|
||||
void SetSpin(float spinX, float spinY);
|
||||
void IncrementSpin(float spinDX, float spinDY);
|
||||
@@ -61,6 +69,8 @@ class OsrRenderer {
|
||||
|
||||
void ClearPopupRects();
|
||||
|
||||
const OsrRendererSettings& settings() const { return settings_; }
|
||||
|
||||
private:
|
||||
CefRect GetPopupRectInWebView(const CefRect& original_rect);
|
||||
|
||||
|
Reference in New Issue
Block a user