mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-29 18:49:52 +01:00
Mac: Remove browser_compositor_mac.patch
This patch file causes the blank screen issue with Views and is not actually required.
This commit is contained in:
parent
b5dfcd05cb
commit
f93c9c0c5c
@ -179,10 +179,6 @@ patches = [
|
||||
# https://bitbucket.org/chromiumembedded/cef/issues/2102
|
||||
'name': 'views_1749_2102',
|
||||
},
|
||||
{
|
||||
# Expose ui::Compositor via BrowserCompositorMac for OSR.
|
||||
'name': 'browser_compositor_mac',
|
||||
},
|
||||
{
|
||||
# Fix chrome Widevine build on Linux.
|
||||
#
|
||||
|
@ -1,30 +0,0 @@
|
||||
diff --git content/browser/renderer_host/browser_compositor_view_mac.h content/browser/renderer_host/browser_compositor_view_mac.h
|
||||
index 202bd7aa0d57..20067b203d96 100644
|
||||
--- content/browser/renderer_host/browser_compositor_view_mac.h
|
||||
+++ content/browser/renderer_host/browser_compositor_view_mac.h
|
||||
@@ -58,6 +58,8 @@ class CONTENT_EXPORT BrowserCompositorMac : public DelegatedFrameHostClient,
|
||||
|
||||
// These will not return nullptr until Destroy is called.
|
||||
DelegatedFrameHost* GetDelegatedFrameHost();
|
||||
+ ui::Layer* GetRootLayer() { return root_layer_.get(); }
|
||||
+ ui::Compositor* GetCompositor();
|
||||
|
||||
// Force a new surface id to be allocated. Returns true if the
|
||||
// RenderWidgetHostImpl sent the resulting surface id to the renderer.
|
||||
diff --git content/browser/renderer_host/browser_compositor_view_mac.mm content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||
index a82ed2d5bbcd..59fabfcdfff7 100644
|
||||
--- content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||
+++ content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||
@@ -86,6 +86,12 @@ DelegatedFrameHost* BrowserCompositorMac::GetDelegatedFrameHost() {
|
||||
return delegated_frame_host_.get();
|
||||
}
|
||||
|
||||
+ui::Compositor* BrowserCompositorMac::GetCompositor() {
|
||||
+ if (recyclable_compositor_)
|
||||
+ return recyclable_compositor_->compositor();
|
||||
+ return nullptr;
|
||||
+}
|
||||
+
|
||||
bool BrowserCompositorMac::ForceNewSurfaceId() {
|
||||
dfh_local_surface_id_allocator_.GenerateId();
|
||||
delegated_frame_host_->EmbedSurface(
|
Loading…
x
Reference in New Issue
Block a user