mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Add off-screen rendering support (issue #518).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1294 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -109,8 +109,10 @@ struct CefWindowInfoTraits {
|
||||
|
||||
static inline void set(const struct_type* src, struct_type* target,
|
||||
bool copy) {
|
||||
target->widget = src->widget;
|
||||
target->parent_widget = src->parent_widget;
|
||||
target->window_rendering_disabled = src->window_rendering_disabled;
|
||||
target->transparent_painting = src->transparent_painting;
|
||||
target->widget = src->widget;
|
||||
}
|
||||
};
|
||||
|
||||
@ -126,6 +128,15 @@ class CefWindowInfo : public CefStructBase<CefWindowInfoTraits> {
|
||||
void SetAsChild(CefWindowHandle ParentWidget) {
|
||||
parent_widget = ParentWidget;
|
||||
}
|
||||
|
||||
void SetTransparentPainting(bool transparentPainting) {
|
||||
transparent_painting = transparentPainting;
|
||||
}
|
||||
|
||||
void SetAsOffScreen(CefWindowHandle ParentWidget) {
|
||||
window_rendering_disabled = true;
|
||||
parent_widget = ParentWidget;
|
||||
}
|
||||
};
|
||||
|
||||
#endif // OS_LINUX
|
||||
|
Reference in New Issue
Block a user