mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Add off-screen rendering support for Mac OS-X (issue #540).
- Add patch for ninja build support on Mac OS-X. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@624 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -106,21 +106,18 @@ gfx::PluginWindowHandle WebWidgetHost::GetWindowedPluginAt(int x, int y) {
|
||||
}
|
||||
|
||||
void WebWidgetHost::DoPaint() {
|
||||
// TODO(cef): The below code is cross-platform but the IsIdle() method
|
||||
// currently requires patches to Chromium. Since this code is only executed
|
||||
// on Windows it's been stuck behind an #ifdef for now to avoid having to
|
||||
// patch Chromium code on other platforms.
|
||||
#if defined(OS_WIN)
|
||||
if (MessageLoop::current()->IsIdle()) {
|
||||
if (MessageLoop::current()->IsIdle()) {
|
||||
has_update_task_ = false;
|
||||
// Paint to the delegate.
|
||||
#if defined(OS_MACOSX)
|
||||
SkRegion region;
|
||||
Paint(region);
|
||||
#else
|
||||
Paint();
|
||||
#endif
|
||||
} else {
|
||||
// Try again later.
|
||||
CefThread::PostTask(CefThread::UI, FROM_HERE,
|
||||
base::Bind(&WebWidgetHost::DoPaint, weak_factory_.GetWeakPtr()));
|
||||
}
|
||||
#else
|
||||
NOTIMPLEMENTED();
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user