92 Commits

Author SHA1 Message Date
Marshall Greenblatt
4a28bcd532 osr: Fix GPU process crash with SendExternalBeginFrame (see issue )
Fixes the following error:
Check failed: !pending_frame_callback_. Got overlapping IssueExternalBeginFrame

To test:
Run `cefclient --off-screen-rendering-enabled --external-begin-frame-enabled`
on Windows without crashing.
2021-10-28 15:20:45 -04:00
Marshall Greenblatt
6872dadd74 Update to Chromium version 96.0.4664.0 () 2021-10-21 15:43:15 -04:00
Marshall Greenblatt
41b64e428c Rename SendFocusEvent to SetFocus (fixes issue )
Also removes CefBrowserHost::SendFocusEvent. Use the existing SetFocus method
instead.
2021-09-27 10:50:12 +03:00
Mathieu Lafon
6dad2c45ee osr: Implement InvalidateLocalSurfaceIdOnEviction (fixes issue )
This fixes an empty-rendering issue when the view is shown after being
evicted.
2021-09-22 11:09:38 +00:00
Marshall Greenblatt
5782fdca16 Update to Chromium version 95.0.4638.0 ()
Known issues:
- Windows ARM64 builds are currently failing due to
  https://crbug.com/1242884#c31
2021-09-22 12:08:24 +03:00
Marshall Greenblatt
b4ea0496e7 Update to Chromium version 93.0.4577.0 () 2021-07-27 19:03:09 -04:00
Marshall Greenblatt
00dca9601e Update to Chromium version 92.0.4515.0 () 2021-06-10 16:42:44 -04:00
Marshall Greenblatt
ae4f68f695 Update to Chromium version 91.0.4472.0 () 2021-04-23 11:38:51 -04:00
Marshall Greenblatt
74db00fc89 Update to Chromium version 90.0.4430.0 ()
- Linux ARM builds require use_vaapi=false (see https://crbug.com/1185348)
- Windows official builds require use_thin_lto=false (see https://crbug.com/1177001)
2021-03-18 11:23:00 -04:00
Marshall Greenblatt
1d39ff720e Mac: Add Views API support (see issue )
The Chrome browser can now be hosted in a Views-based application on Mac
(see issue ).

To launch a fully-featured Chrome window using cefsimple:
$ open cefsimple.app --args --enable-chrome-runtime

To launch a minimally-styled Views-hosted window using cefsimple:
$ open cefsimple.app --args --use-views [--enable-chrome-runtime]

To launch a fully-styled Views-hosted window using cefclient:
$ open cefclient.app --args --use-views [--enable-chrome-runtime]

Known issues:
- Some Views unit tests are currently failing on Mac.
2021-02-27 12:31:45 -05:00
Marshall Greenblatt
5ef0fb8ac8 Update to Chromium version 89.0.4389.0 ()
- SSE3 is now required on x86 processors (see https://crbug.com/1123353).
2021-02-08 14:15:38 -05:00
Marshall Greenblatt
a584bd187b Update to Chromium version 88.0.4324.0 ()
- Mac: Xcode 12.2 and the MacOS 11.0 SDK are now required for building.
- MacOS 10.10 (Yosemite) is no longer supported (see https://crbug.com/1126056).
- Flash is no longer supported (see https://www.chromium.org/flash-roadmap).
2020-12-04 15:43:33 -05:00
Marshall Greenblatt
023d218104 Move OnCursorChange from CefRenderHandler to CefDisplayHandler
The cursor change can now be handled by the client with both windowed and
off-screen rendering.

Returning true from OnCursorChange will disable the default cursor change
behavior. This is functionally equivalent to the
CefBrowserHost::SetMouseCursorChangeDisabled method, so that method has been
removed.
2020-10-28 12:56:27 -04:00
Marshall Greenblatt
015e3621a3 Update to Chromium version 87.0.4280.0 ()
- Windows: VS2015 Update 2 is now the minimum version requirement for linking
  cef_sandbox from official build binary distributions.
2020-10-15 14:21:06 -04:00
Marshall Greenblatt
e94a261bf5 Rename CefBrowserHostImpl to AlloyBrowserHostImpl (see issue )
After commit 38d8acfa18 this object is only used with the alloy runtime.
2020-09-22 17:36:06 -04:00
Marshall Greenblatt
24c2f2fa38 Update to Chromium version 86.0.4240.0 ()
- CefURLRequest::Create is no longer supported in the renderer process
  (see https://crbug.com/891872). Use CefFrame::CreateURLRequest instead.
- Mac platform definitions have been changed from `MACOSX` to `MAC`
  (see https://crbug.com/1105907) and related CMake macro names have
  been updated. The old `OS_MACOSX` define is still set in code and CMake
  for backwards compatibility.
- Linux ARM build is currently broken (see https://crbug.com/1123214).
2020-09-03 17:44:25 -04:00
Andrei Kurushin
574d4dcedc Fix crash when closing an OSR browser (fixes issue )
Release the Compositor before the WebContents is destroyed to match
the behavior in non-OSR code.
2020-07-20 14:33:00 -04:00
Marshall Greenblatt
6573df6cc3 Update to Chromium version 85.0.4183.0 ()
- Windows: 10.0.19041 SDK is now required.
- macOS: 10.15.1 SDK (at least Xcode 11.2) is now required.
- Remove CefMediaSource::IsValid and CefMediaSink::IsValid which would
  always return true.
2020-07-16 19:11:12 -04:00
Alexander Guettler
790d248111 Update to Chromium version 84.0.4147.0 () 2020-06-10 15:26:29 -04:00
Marshall Greenblatt
fa519f5108 Update to Chromium version 83.0.4103.0 () 2020-04-15 16:47:50 -04:00
Marshall Greenblatt
047e8f9349 Update to Chromium version 82.0.4085.0 ()
- Building on macOS now requires the 10.15 SDK. Xcode 11.3 is recommended as
  Xcode 11.4 is not currently supported (see https://crbug.com/1065146).
- Jumbo build configuration is no longer supported.

Chromium is skipping the M82 release and consequently no CEF 4085 branch will
be created. For details on the Chromium decision see
https://groups.google.com/a/chromium.org/d/msg/chromium-dev/Vn7uzglqLz0/JItlSrZxBAAJ
2020-04-02 13:20:25 -04:00
Marshall Greenblatt
9d9ee8b45f Update to Chromium version 81.0.4044.0 () 2020-03-04 19:31:54 -05:00
Marshall Greenblatt
8c6cc302d0 Fix OSR surface sizing on browser resize (fixes issue ).
This includes the following changes:
- Update usage of surface IDs to match the Aura implementation from the
  RWHVAura/Window classes.
- Batch CefBrowserHost::WasResized calls to avoid excessive/unnecessary calls
  to SynchronizeVisualProperties.
- Cache the results of CefRenderHandler::GetViewRect after resize and make
  RWHVOSR::GetViewBounds the source of truth for all size calculations.
- Fix bounds calculations in CefVideoConsumerOSR with GPU enabled.

Known issues:
- The size passed to OnPaint may be off by 1 pixel in cases where the device
  scale factor is not 1 and does not divide evenly into the pixel size. This is
  due to the inexact conversion from integer pixel size to integer logical size
  for GetViewRect.
2020-02-21 15:02:52 -05:00
Alexander Guettler
71768ea6c3 Update to Chromium version 80.0.3987.0 () 2020-02-17 13:19:09 -05:00
elad bahar
8ca0b4580e Fix OSR rendering recovery after GPU process crash (fixes issue ) 2020-01-08 14:39:24 +02:00
Riku Palomäki
c4284b2938 Fix crash when resizing an OSR browser window (fixes issue )
(cherry picked from commit feffedbae999031505b2bbe0224c622df7c3f76e)
2019-11-26 18:42:34 +00:00
Daniel Nitsche
115f760821 Update to Chromium version 79.0.3945.1 () 2019-11-19 13:22:13 -05:00
Maksim Sisov
a8263b1b4f Fix ozone build issues (fixes issue ) 2019-10-02 09:47:10 +00:00
Marshall Greenblatt
f8e0797773 Update to Chromium version 78.0.3904.0 () 2019-10-01 13:55:16 +00:00
Alexander Guettler
46d3a81ba0 Update to Chromium version 77.0.3865.0 ()
- Windows: SDK version 10.0.18362.0 is now required.
2019-09-04 15:13:32 +00:00
Marshall Greenblatt
cf87c88b05 Remove unused GetCompositor method and fix macOS compile error (see issue ) 2019-07-18 19:41:47 -04:00
Alexander Guettler
ac2cc54e13 Add initial Viz implementation for OSR (see issue ).
The old shared surface implementation has been removed and will need to be
re-implemented using the Viz code path.
2019-07-16 16:33:08 -04:00
Petra Öhlin
cc0db5f166 Update to Chromium version 76.0.3809.0 ()
OSR tests will be fixed by a follow-up merge of Viz support (see issue ).
2019-07-16 15:34:16 -04:00
Marshall Greenblatt
6193d8c554 Update to Chromium version 75.0.3770.0 () 2019-06-06 18:37:45 +02:00
santosh mahto
491253fa03 Linux: Add support for ozone builds (fixes issue ).
Ozone builds can run with different platform backends (Wayland, X11, etc). Usage of the Views framework is required, and the cefclient sample application is not supported.

Example usage:

$ export GN_DEFINES="use_ozone=true"
$ cd /path/to/chromium/src/cef
$ ./cef_create_projects.sh
$ cd /path/to/chromium/src
$ ninja -C out/Release_GN_x64 cefsimple
$ ./out/Release_GN_x64/cefsimple --use-views --ozone-platform=wayland

Binary distributions can be created by passing the `--ozone` flag to make_distrib.py.
2019-04-23 17:00:14 +00:00
Riku Palomäki
531df6eaba Fix frozen OSR rendering after resize (fixes issue ) 2019-03-18 21:04:21 +00:00
Alexander Guettler
725ed88529 Update to Chromium version 74.0.3729.0 ()
- Windows: 10.0.17763.0 SDK is now required.
- Mac: 10.13 SDK is now required.
- Removed CefRequestContext::ResolveHostCached which is no longer supported by Chromium.
2019-03-13 21:27:37 +00:00
Riku Palomäki
feffedbae9 Fix a crash when resizing an OSR browser window (issue ) 2019-03-07 22:03:35 +00:00
Riku Palomäki
5f615a95bc Add multi-touch support for OSR (issue ) 2019-02-26 11:51:33 -05:00
Riku Palomäki
379fb8d39e Add CefRenderHandler::OnVirtualKeyboardRequested (issue ) 2019-02-26 16:49:41 +00:00
Marshall Greenblatt
5a1c642431 Update to Chromium version 74.0.3706.0 () 2019-02-25 12:09:54 -05:00
Marshall Greenblatt
710021be15 Windows: Fix OSR rendering with shared texture enabled (issue ) 2019-01-29 15:52:46 -05:00
Alexander Guettler
1a86240c93 Update to Chromium version 73.0.3665.0 () 2019-01-18 11:25:51 +01:00
Marshall Greenblatt
6df612a597 Update to Chromium version 72.0.3615.0 ()
- The |category| value for all TRACE calls from CEF client applications is now
  "cef.client" due to https://crrev.com/331266377d.
- The |with_menu_marker| parameter to CreateMenuButton has been removed due to
  https://crrev.com/7f7e382118.
2018-12-04 14:45:37 -05:00
Marshall Greenblatt
315b57e9f7 Update to Chromium version 71.0.3578.0 () 2018-10-25 12:57:05 -04:00
Marshall Greenblatt
da53451f97 Update to Chromium version 71.0.3567.0 ()
- Configuration of OSR VSync interval is currently missing (issue )
- Rename VERSION to VERSION.in to fix libc++ compile error (issue )
2018-10-04 12:17:26 +03:00
Greg Wessels
713eebcafc Add support for shared texture and external BeginFrame in OSR mode (issue )
- Add CefWindowInfo::shared_texture_enabled and
  CefRenderHandler::OnAcceleratedPaint for shared texture support. Currently
  only supported on Windows (D3D11).
- Add CefWindowInfo::external_begin_frame_enabled and
  CefBrowserHost::SendExternalBeginFrame for external begin frame support.
2018-09-26 13:10:49 +02:00
Marshall Greenblatt
c7d187a512 Fix crash when hovering buttons in OSR PDF viewer (issue ) 2018-09-14 11:18:10 +02:00
Marshall Greenblatt
a64237bcb0 Update to Chromium version 70.0.3538.0 ()
Known issues:
- The CefLoadCRLSetsFile function needs to be re-implemented (see issue ).
- Linux: GTK2 support has been removed. The cefclient sample needs to be updated
  to use GTK3 (see issue ).
2018-09-05 15:42:42 +02:00
Marshall Greenblatt
ea0e213bef Update to Chromium version 70.0.3516.0 () 2018-08-10 11:31:08 -04:00