mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 74.0.3706.0 (#632463)
This commit is contained in:
@@ -27,10 +27,10 @@ index 941d70bd2a7e..ef14a7dd7d4f 100644
|
||||
virtual void OnReflectorChanged();
|
||||
|
||||
diff --git content/browser/compositor/gpu_process_transport_factory.cc content/browser/compositor/gpu_process_transport_factory.cc
|
||||
index 5aeda7bd9caf..1f18a5599bec 100644
|
||||
index bc1934e2c7b4..c139815caa52 100644
|
||||
--- content/browser/compositor/gpu_process_transport_factory.cc
|
||||
+++ content/browser/compositor/gpu_process_transport_factory.cc
|
||||
@@ -216,6 +216,18 @@ GpuProcessTransportFactory::~GpuProcessTransportFactory() {
|
||||
@@ -209,6 +209,18 @@ GpuProcessTransportFactory::~GpuProcessTransportFactory() {
|
||||
task_graph_runner_->Shutdown();
|
||||
}
|
||||
|
||||
@@ -49,41 +49,41 @@ index 5aeda7bd9caf..1f18a5599bec 100644
|
||||
std::unique_ptr<viz::SoftwareOutputDevice>
|
||||
GpuProcessTransportFactory::CreateSoftwareOutputDevice(
|
||||
gfx::AcceleratedWidget widget,
|
||||
@@ -485,11 +497,20 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
|
||||
// surfaces as they are not following the correct mode.
|
||||
DisableGpuCompositing(compositor.get());
|
||||
}
|
||||
@@ -451,11 +463,20 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
|
||||
// surfaces as they are not following the correct mode.
|
||||
DisableGpuCompositing(compositor.get());
|
||||
}
|
||||
+
|
||||
+ std::unique_ptr<viz::SoftwareOutputDevice> output_device;
|
||||
+ if (compositor->delegate()) {
|
||||
+ output_device = compositor->delegate()->CreateSoftwareOutputDevice(
|
||||
+ compositor.get());
|
||||
+ }
|
||||
+ if (!output_device) {
|
||||
+ output_device = CreateSoftwareOutputDevice(compositor->widget(),
|
||||
+ compositor->task_runner());
|
||||
+ }
|
||||
+ std::unique_ptr<viz::SoftwareOutputDevice> output_device;
|
||||
+ if (compositor->delegate()) {
|
||||
+ output_device = compositor->delegate()->CreateSoftwareOutputDevice(
|
||||
+ compositor.get());
|
||||
+ }
|
||||
+ if (!output_device) {
|
||||
+ output_device = CreateSoftwareOutputDevice(compositor->widget(),
|
||||
+ compositor->task_runner());
|
||||
+ }
|
||||
+
|
||||
display_output_surface =
|
||||
std::make_unique<SoftwareBrowserCompositorOutputSurface>(
|
||||
- CreateSoftwareOutputDevice(compositor->widget(),
|
||||
- compositor->task_runner()),
|
||||
- std::move(vsync_callback));
|
||||
+ std::move(output_device), std::move(vsync_callback));
|
||||
} else {
|
||||
DCHECK(context_provider);
|
||||
const auto& capabilities = context_provider->ContextCapabilities();
|
||||
@@ -463,7 +484,8 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
|
||||
display_output_surface =
|
||||
std::make_unique<SoftwareBrowserCompositorOutputSurface>(
|
||||
- CreateSoftwareOutputDevice(compositor->widget(),
|
||||
- compositor->task_runner()),
|
||||
- std::move(vsync_callback));
|
||||
+ std::move(output_device), std::move(vsync_callback));
|
||||
} else {
|
||||
DCHECK(context_provider);
|
||||
const auto& capabilities = context_provider->ContextCapabilities();
|
||||
@@ -497,7 +518,8 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
|
||||
display_output_surface =
|
||||
std::make_unique<OffscreenBrowserCompositorOutputSurface>(
|
||||
context_provider, std::move(vsync_callback),
|
||||
- std::unique_ptr<viz::CompositorOverlayCandidateValidator>());
|
||||
+ std::unique_ptr<viz::CompositorOverlayCandidateValidator>(),
|
||||
+ compositor->shared_texture_enabled());
|
||||
} else if (capabilities.surfaceless) {
|
||||
std::make_unique<OffscreenBrowserCompositorOutputSurface>(
|
||||
context_provider, std::move(vsync_callback),
|
||||
- std::unique_ptr<viz::CompositorOverlayCandidateValidator>());
|
||||
+ std::unique_ptr<viz::CompositorOverlayCandidateValidator>(),
|
||||
+ compositor->shared_texture_enabled());
|
||||
} else if (capabilities.surfaceless) {
|
||||
#if defined(OS_MACOSX)
|
||||
const auto& gpu_feature_info = context_provider->GetGpuFeatureInfo();
|
||||
@@ -944,7 +966,8 @@ GpuProcessTransportFactory::CreatePerCompositorData(
|
||||
const auto& gpu_feature_info = context_provider->GetGpuFeatureInfo();
|
||||
@@ -908,7 +930,8 @@ GpuProcessTransportFactory::CreatePerCompositorData(
|
||||
gfx::AcceleratedWidget widget = compositor->widget();
|
||||
|
||||
auto data = std::make_unique<PerCompositorData>();
|
||||
@@ -94,10 +94,10 @@ index 5aeda7bd9caf..1f18a5599bec 100644
|
||||
} else {
|
||||
#if defined(GPU_SURFACE_HANDLE_IS_ACCELERATED_WINDOW)
|
||||
diff --git content/browser/compositor/gpu_process_transport_factory.h content/browser/compositor/gpu_process_transport_factory.h
|
||||
index 5653f31a8797..910de72d1543 100644
|
||||
index 4c4548058be5..335099597a9d 100644
|
||||
--- content/browser/compositor/gpu_process_transport_factory.h
|
||||
+++ content/browser/compositor/gpu_process_transport_factory.h
|
||||
@@ -102,6 +102,7 @@ class GpuProcessTransportFactory : public ui::ContextFactory,
|
||||
@@ -99,6 +99,7 @@ class GpuProcessTransportFactory : public ui::ContextFactory,
|
||||
void IssueExternalBeginFrame(ui::Compositor* compositor,
|
||||
const viz::BeginFrameArgs& args) override;
|
||||
void SetOutputIsSecure(ui::Compositor* compositor, bool secure) override;
|
||||
@@ -106,10 +106,10 @@ index 5653f31a8797..910de72d1543 100644
|
||||
// ImageTransportFactory implementation.
|
||||
void DisableGpuCompositing() override;
|
||||
diff --git content/browser/compositor/offscreen_browser_compositor_output_surface.cc content/browser/compositor/offscreen_browser_compositor_output_surface.cc
|
||||
index c4efbe76891c..dcb032242304 100644
|
||||
index ac661d7e0234..0059e9123e99 100644
|
||||
--- content/browser/compositor/offscreen_browser_compositor_output_surface.cc
|
||||
+++ content/browser/compositor/offscreen_browser_compositor_output_surface.cc
|
||||
@@ -33,10 +33,12 @@ OffscreenBrowserCompositorOutputSurface::
|
||||
@@ -34,10 +34,12 @@ OffscreenBrowserCompositorOutputSurface::
|
||||
scoped_refptr<ws::ContextProviderCommandBuffer> context,
|
||||
const UpdateVSyncParametersCallback& update_vsync_parameters_callback,
|
||||
std::unique_ptr<viz::CompositorOverlayCandidateValidator>
|
||||
@@ -123,7 +123,7 @@ index c4efbe76891c..dcb032242304 100644
|
||||
weak_ptr_factory_(this) {
|
||||
capabilities_.uses_default_gl_framebuffer = false;
|
||||
}
|
||||
@@ -46,6 +48,10 @@ OffscreenBrowserCompositorOutputSurface::
|
||||
@@ -47,6 +49,10 @@ OffscreenBrowserCompositorOutputSurface::
|
||||
DiscardBackbuffer();
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ index c4efbe76891c..dcb032242304 100644
|
||||
void OffscreenBrowserCompositorOutputSurface::BindToClient(
|
||||
viz::OutputSurfaceClient* client) {
|
||||
DCHECK(client);
|
||||
@@ -54,42 +60,72 @@ void OffscreenBrowserCompositorOutputSurface::BindToClient(
|
||||
@@ -55,42 +61,72 @@ void OffscreenBrowserCompositorOutputSurface::BindToClient(
|
||||
}
|
||||
|
||||
void OffscreenBrowserCompositorOutputSurface::EnsureBackbuffer() {
|
||||
@@ -237,7 +237,7 @@ index c4efbe76891c..dcb032242304 100644
|
||||
}
|
||||
|
||||
void OffscreenBrowserCompositorOutputSurface::DiscardBackbuffer() {
|
||||
@@ -101,6 +137,16 @@ void OffscreenBrowserCompositorOutputSurface::DiscardBackbuffer() {
|
||||
@@ -102,6 +138,16 @@ void OffscreenBrowserCompositorOutputSurface::DiscardBackbuffer() {
|
||||
reflector_->OnSourceTextureMailboxUpdated(nullptr);
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ index c4efbe76891c..dcb032242304 100644
|
||||
if (fbo_) {
|
||||
gl->BindFramebuffer(GL_FRAMEBUFFER, fbo_);
|
||||
gl->DeleteFramebuffers(1, &fbo_);
|
||||
@@ -125,15 +171,20 @@ void OffscreenBrowserCompositorOutputSurface::Reshape(
|
||||
@@ -126,15 +172,20 @@ void OffscreenBrowserCompositorOutputSurface::Reshape(
|
||||
}
|
||||
|
||||
void OffscreenBrowserCompositorOutputSurface::BindFramebuffer() {
|
||||
@@ -279,7 +279,7 @@ index c4efbe76891c..dcb032242304 100644
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,6 +205,12 @@ void OffscreenBrowserCompositorOutputSurface::SwapBuffers(
|
||||
@@ -155,6 +206,12 @@ void OffscreenBrowserCompositorOutputSurface::SwapBuffers(
|
||||
// The original implementation had a flickering issue (crbug.com/515332).
|
||||
gpu::gles2::GLES2Interface* gl = context_provider_->ContextGL();
|
||||
|
||||
@@ -292,7 +292,7 @@ index c4efbe76891c..dcb032242304 100644
|
||||
gpu::SyncToken sync_token;
|
||||
gl->GenUnverifiedSyncTokenCHROMIUM(sync_token.GetData());
|
||||
context_provider_->ContextSupport()->SignalSyncToken(
|
||||
@@ -193,7 +250,9 @@ void OffscreenBrowserCompositorOutputSurface::OnSwapBuffersComplete(
|
||||
@@ -194,7 +251,9 @@ void OffscreenBrowserCompositorOutputSurface::OnSwapBuffersComplete(
|
||||
const std::vector<ui::LatencyInfo>& latency_info) {
|
||||
latency_tracker_.OnGpuSwapBuffersCompleted(latency_info);
|
||||
client_->DidReceiveSwapBuffersAck();
|
||||
@@ -348,10 +348,10 @@ index b028dc136e7f..fa83865087dc 100644
|
||||
base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
|
||||
weak_ptr_factory_;
|
||||
diff --git gpu/GLES2/gl2chromium_autogen.h gpu/GLES2/gl2chromium_autogen.h
|
||||
index e46e882a0f69..9b0ad1ee2bbc 100644
|
||||
index 3065b8b9ea47..ba39222f3d87 100644
|
||||
--- gpu/GLES2/gl2chromium_autogen.h
|
||||
+++ gpu/GLES2/gl2chromium_autogen.h
|
||||
@@ -409,6 +409,10 @@
|
||||
@@ -414,6 +414,10 @@
|
||||
GLES2_GET_FUN(CreateClientGpuFenceCHROMIUM)
|
||||
#define glWaitGpuFenceCHROMIUM GLES2_GET_FUN(WaitGpuFenceCHROMIUM)
|
||||
#define glDestroyGpuFenceCHROMIUM GLES2_GET_FUN(DestroyGpuFenceCHROMIUM)
|
||||
@@ -363,10 +363,10 @@ index e46e882a0f69..9b0ad1ee2bbc 100644
|
||||
GLES2_GET_FUN(InvalidateReadbackBufferShadowDataCHROMIUM)
|
||||
#define glFramebufferTextureMultiviewLayeredANGLE \
|
||||
diff --git gpu/command_buffer/build_gles2_cmd_buffer.py gpu/command_buffer/build_gles2_cmd_buffer.py
|
||||
index 2cc75e3b82b8..06e78c7064d8 100755
|
||||
index 7fe7fed028b5..c6f8ee684dc9 100755
|
||||
--- gpu/command_buffer/build_gles2_cmd_buffer.py
|
||||
+++ gpu/command_buffer/build_gles2_cmd_buffer.py
|
||||
@@ -4190,6 +4190,35 @@ _FUNCTION_INFO = {
|
||||
@@ -4244,6 +4244,35 @@ _FUNCTION_INFO = {
|
||||
'extension': 'CHROMIUM_gpu_fence',
|
||||
'extension_flag': 'chromium_gpu_fence',
|
||||
},
|
||||
@@ -403,10 +403,10 @@ index 2cc75e3b82b8..06e78c7064d8 100755
|
||||
'decoder_func': 'DoUnpremultiplyAndDitherCopyCHROMIUM',
|
||||
'cmd_args': 'GLuint source_id, GLuint dest_id, GLint x, GLint y, '
|
||||
diff --git gpu/command_buffer/client/gles2_c_lib_autogen.h gpu/command_buffer/client/gles2_c_lib_autogen.h
|
||||
index 0a8dab9b68b2..248693027d78 100644
|
||||
index ca386c64990c..0adac90e4437 100644
|
||||
--- gpu/command_buffer/client/gles2_c_lib_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_c_lib_autogen.h
|
||||
@@ -1859,6 +1859,20 @@ void GL_APIENTRY GLES2WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
@@ -1899,6 +1899,20 @@ void GL_APIENTRY GLES2WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
void GL_APIENTRY GLES2DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
gles2::GetGLContext()->DestroyGpuFenceCHROMIUM(gpu_fence_id);
|
||||
}
|
||||
@@ -427,7 +427,7 @@ index 0a8dab9b68b2..248693027d78 100644
|
||||
void GL_APIENTRY
|
||||
GLES2InvalidateReadbackBufferShadowDataCHROMIUM(GLuint buffer_id) {
|
||||
gles2::GetGLContext()->InvalidateReadbackBufferShadowDataCHROMIUM(buffer_id);
|
||||
@@ -3351,6 +3365,22 @@ extern const NameToFunc g_gles2_function_table[] = {
|
||||
@@ -3411,6 +3425,22 @@ extern const NameToFunc g_gles2_function_table[] = {
|
||||
"glDestroyGpuFenceCHROMIUM",
|
||||
reinterpret_cast<GLES2FunctionPointer>(glDestroyGpuFenceCHROMIUM),
|
||||
},
|
||||
@@ -451,10 +451,10 @@ index 0a8dab9b68b2..248693027d78 100644
|
||||
"glInvalidateReadbackBufferShadowDataCHROMIUM",
|
||||
reinterpret_cast<GLES2FunctionPointer>(
|
||||
diff --git gpu/command_buffer/client/gles2_cmd_helper_autogen.h gpu/command_buffer/client/gles2_cmd_helper_autogen.h
|
||||
index 4b936cbc4d26..d78b47046a8a 100644
|
||||
index e0c0ca8e93fb..2998690b8bf8 100644
|
||||
--- gpu/command_buffer/client/gles2_cmd_helper_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_cmd_helper_autogen.h
|
||||
@@ -3441,6 +3441,42 @@ void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
@@ -3508,6 +3508,42 @@ void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -498,10 +498,10 @@ index 4b936cbc4d26..d78b47046a8a 100644
|
||||
GLint shm_id,
|
||||
GLuint shm_offset,
|
||||
diff --git gpu/command_buffer/client/gles2_implementation.cc gpu/command_buffer/client/gles2_implementation.cc
|
||||
index a5ca58fb6e5e..9d1d4a70070b 100644
|
||||
index 3f15a8c2ceb5..6305875463f7 100644
|
||||
--- gpu/command_buffer/client/gles2_implementation.cc
|
||||
+++ gpu/command_buffer/client/gles2_implementation.cc
|
||||
@@ -7429,6 +7429,22 @@ void GLES2Implementation::Viewport(GLint x,
|
||||
@@ -7651,6 +7651,22 @@ void GLES2Implementation::Viewport(GLint x,
|
||||
CheckGLError();
|
||||
}
|
||||
|
||||
@@ -525,10 +525,10 @@ index a5ca58fb6e5e..9d1d4a70070b 100644
|
||||
GLuint id,
|
||||
uint32_t sync_data_shm_id,
|
||||
diff --git gpu/command_buffer/client/gles2_implementation_autogen.h gpu/command_buffer/client/gles2_implementation_autogen.h
|
||||
index 624ea51c8289..e2b2f61f1088 100644
|
||||
index 60200cb39bdc..d6b603fde369 100644
|
||||
--- gpu/command_buffer/client/gles2_implementation_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_implementation_autogen.h
|
||||
@@ -1309,6 +1309,16 @@ void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
@@ -1338,6 +1338,16 @@ void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
|
||||
void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
|
||||
@@ -546,10 +546,10 @@ index 624ea51c8289..e2b2f61f1088 100644
|
||||
|
||||
void FramebufferTextureMultiviewLayeredANGLE(GLenum target,
|
||||
diff --git gpu/command_buffer/client/gles2_implementation_impl_autogen.h gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
||||
index b196b0a5879e..77b4a10e7396 100644
|
||||
index bfbcd6b7741c..9a461a9cc321 100644
|
||||
--- gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
||||
@@ -3719,6 +3719,30 @@ void GLES2Implementation::DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
@@ -3751,6 +3751,30 @@ void GLES2Implementation::DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
CheckGLError();
|
||||
}
|
||||
|
||||
@@ -581,10 +581,10 @@ index b196b0a5879e..77b4a10e7396 100644
|
||||
GLenum target,
|
||||
GLenum attachment,
|
||||
diff --git gpu/command_buffer/client/gles2_interface_autogen.h gpu/command_buffer/client/gles2_interface_autogen.h
|
||||
index 8f024988b3af..c8d9850217db 100644
|
||||
index 9daed65b7658..692e72c651a4 100644
|
||||
--- gpu/command_buffer/client/gles2_interface_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_interface_autogen.h
|
||||
@@ -980,6 +980,12 @@ virtual GLuint CreateGpuFenceCHROMIUM() = 0;
|
||||
@@ -1004,6 +1004,12 @@ virtual GLuint CreateGpuFenceCHROMIUM() = 0;
|
||||
virtual GLuint CreateClientGpuFenceCHROMIUM(ClientGpuFence source) = 0;
|
||||
virtual void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) = 0;
|
||||
virtual void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) = 0;
|
||||
@@ -598,10 +598,10 @@ index 8f024988b3af..c8d9850217db 100644
|
||||
virtual void FramebufferTextureMultiviewLayeredANGLE(GLenum target,
|
||||
GLenum attachment,
|
||||
diff --git gpu/command_buffer/client/gles2_interface_stub_autogen.h gpu/command_buffer/client/gles2_interface_stub_autogen.h
|
||||
index 263313c515b8..2e9f44ac4f69 100644
|
||||
index 35b35b1684cd..320a9661ca63 100644
|
||||
--- gpu/command_buffer/client/gles2_interface_stub_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_interface_stub_autogen.h
|
||||
@@ -950,6 +950,12 @@ GLuint CreateGpuFenceCHROMIUM() override;
|
||||
@@ -974,6 +974,12 @@ GLuint CreateGpuFenceCHROMIUM() override;
|
||||
GLuint CreateClientGpuFenceCHROMIUM(ClientGpuFence source) override;
|
||||
void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
@@ -615,10 +615,10 @@ index 263313c515b8..2e9f44ac4f69 100644
|
||||
void FramebufferTextureMultiviewLayeredANGLE(GLenum target,
|
||||
GLenum attachment,
|
||||
diff --git gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h
|
||||
index 81e592e25f73..df122ea5416b 100644
|
||||
index bb14269b85c1..22330e480b6a 100644
|
||||
--- gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h
|
||||
@@ -1266,6 +1266,14 @@ GLuint GLES2InterfaceStub::CreateClientGpuFenceCHROMIUM(
|
||||
@@ -1296,6 +1296,14 @@ GLuint GLES2InterfaceStub::CreateClientGpuFenceCHROMIUM(
|
||||
}
|
||||
void GLES2InterfaceStub::WaitGpuFenceCHROMIUM(GLuint /* gpu_fence_id */) {}
|
||||
void GLES2InterfaceStub::DestroyGpuFenceCHROMIUM(GLuint /* gpu_fence_id */) {}
|
||||
@@ -634,10 +634,10 @@ index 81e592e25f73..df122ea5416b 100644
|
||||
GLuint /* buffer_id */) {}
|
||||
void GLES2InterfaceStub::FramebufferTextureMultiviewLayeredANGLE(
|
||||
diff --git gpu/command_buffer/client/gles2_trace_implementation_autogen.h gpu/command_buffer/client/gles2_trace_implementation_autogen.h
|
||||
index 61c2fa70d651..6e5f4ddacb86 100644
|
||||
index 428d60ef0af5..ec6792d5bb07 100644
|
||||
--- gpu/command_buffer/client/gles2_trace_implementation_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_trace_implementation_autogen.h
|
||||
@@ -950,6 +950,12 @@ GLuint CreateGpuFenceCHROMIUM() override;
|
||||
@@ -974,6 +974,12 @@ GLuint CreateGpuFenceCHROMIUM() override;
|
||||
GLuint CreateClientGpuFenceCHROMIUM(ClientGpuFence source) override;
|
||||
void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
@@ -651,10 +651,10 @@ index 61c2fa70d651..6e5f4ddacb86 100644
|
||||
void FramebufferTextureMultiviewLayeredANGLE(GLenum target,
|
||||
GLenum attachment,
|
||||
diff --git gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
|
||||
index dcde091ee4b9..41f1eb704ab8 100644
|
||||
index b14f102a33ae..5e6dd209e3ad 100644
|
||||
--- gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
|
||||
@@ -2685,6 +2685,28 @@ void GLES2TraceImplementation::DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
@@ -2734,6 +2734,28 @@ void GLES2TraceImplementation::DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
gl_->DestroyGpuFenceCHROMIUM(gpu_fence_id);
|
||||
}
|
||||
|
||||
@@ -684,10 +684,10 @@ index dcde091ee4b9..41f1eb704ab8 100644
|
||||
GLuint buffer_id) {
|
||||
TRACE_EVENT_BINARY_EFFICIENT0(
|
||||
diff --git gpu/command_buffer/common/gles2_cmd_format_autogen.h gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
||||
index d45e669919bb..fb71bf5d5093 100644
|
||||
index 41836d0a4a4f..ef29fcc644b1 100644
|
||||
--- gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
||||
+++ gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
||||
@@ -16933,6 +16933,193 @@ static_assert(offsetof(DestroyGpuFenceCHROMIUM, header) == 0,
|
||||
@@ -17261,6 +17261,193 @@ static_assert(offsetof(DestroyGpuFenceCHROMIUM, header) == 0,
|
||||
static_assert(offsetof(DestroyGpuFenceCHROMIUM, gpu_fence_id) == 4,
|
||||
"offset of DestroyGpuFenceCHROMIUM gpu_fence_id should be 4");
|
||||
|
||||
@@ -882,10 +882,10 @@ index d45e669919bb..fb71bf5d5093 100644
|
||||
typedef SetReadbackBufferShadowAllocationINTERNAL ValueType;
|
||||
static const CommandId kCmdId = kSetReadbackBufferShadowAllocationINTERNAL;
|
||||
diff --git gpu/command_buffer/common/gles2_cmd_format_test_autogen.h gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
||||
index 62958cdf8a00..9e691beb6a46 100644
|
||||
index 23dbbe72f2ff..321dca6d026c 100644
|
||||
--- gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
||||
+++ gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
||||
@@ -5610,6 +5610,52 @@ TEST_F(GLES2FormatTest, DestroyGpuFenceCHROMIUM) {
|
||||
@@ -5701,6 +5701,52 @@ TEST_F(GLES2FormatTest, DestroyGpuFenceCHROMIUM) {
|
||||
CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
||||
}
|
||||
|
||||
@@ -939,27 +939,28 @@ index 62958cdf8a00..9e691beb6a46 100644
|
||||
cmds::SetReadbackBufferShadowAllocationINTERNAL& cmd =
|
||||
*GetBufferAs<cmds::SetReadbackBufferShadowAllocationINTERNAL>();
|
||||
diff --git gpu/command_buffer/common/gles2_cmd_ids_autogen.h gpu/command_buffer/common/gles2_cmd_ids_autogen.h
|
||||
index c3321ba34c63..db418228551b 100644
|
||||
index 1731b16d3eb2..3bf2b95d2513 100644
|
||||
--- gpu/command_buffer/common/gles2_cmd_ids_autogen.h
|
||||
+++ gpu/command_buffer/common/gles2_cmd_ids_autogen.h
|
||||
@@ -355,7 +355,11 @@
|
||||
OP(MaxShaderCompilerThreadsKHR) /* 596 */ \
|
||||
OP(CreateAndTexStorage2DSharedImageINTERNALImmediate) /* 597 */ \
|
||||
OP(BeginSharedImageAccessDirectCHROMIUM) /* 598 */ \
|
||||
- OP(EndSharedImageAccessDirectCHROMIUM) /* 599 */
|
||||
+ OP(EndSharedImageAccessDirectCHROMIUM) /* 599 */ \
|
||||
+ OP(CreateSharedTexture) /* 600 */ \
|
||||
+ OP(LockSharedTexture) /* 601 */ \
|
||||
+ OP(UnlockSharedTexture) /* 602 */ \
|
||||
+ OP(DeleteSharedTexture) /* 603 */
|
||||
@@ -360,7 +360,12 @@
|
||||
OP(MaxShaderCompilerThreadsKHR) /* 601 */ \
|
||||
OP(CreateAndTexStorage2DSharedImageINTERNALImmediate) /* 602 */ \
|
||||
OP(BeginSharedImageAccessDirectCHROMIUM) /* 603 */ \
|
||||
- OP(EndSharedImageAccessDirectCHROMIUM) /* 604 */
|
||||
+ OP(EndSharedImageAccessDirectCHROMIUM) /* 604 */ \
|
||||
+ OP(CreateSharedTexture) /* 605 */ \
|
||||
+ OP(LockSharedTexture) /* 606 */ \
|
||||
+ OP(UnlockSharedTexture) /* 607 */ \
|
||||
+ OP(DeleteSharedTexture) /* 608 */
|
||||
+
|
||||
|
||||
enum CommandId {
|
||||
kOneBeforeStartPoint =
|
||||
diff --git gpu/command_buffer/gles2_cmd_buffer_functions.txt gpu/command_buffer/gles2_cmd_buffer_functions.txt
|
||||
index 740a8dcd3d8c..65c88077908e 100644
|
||||
index a0227387cf62..da714ca81b62 100644
|
||||
--- gpu/command_buffer/gles2_cmd_buffer_functions.txt
|
||||
+++ gpu/command_buffer/gles2_cmd_buffer_functions.txt
|
||||
@@ -409,6 +409,12 @@ GL_APICALL GLuint GL_APIENTRY glCreateClientGpuFenceCHROMIUM (ClientGpuFen
|
||||
@@ -416,6 +416,12 @@ GL_APICALL GLuint GL_APIENTRY glCreateClientGpuFenceCHROMIUM (ClientGpuFen
|
||||
GL_APICALL void GL_APIENTRY glWaitGpuFenceCHROMIUM (GLuint gpu_fence_id);
|
||||
GL_APICALL void GL_APIENTRY glDestroyGpuFenceCHROMIUM (GLuint gpu_fence_id);
|
||||
|
||||
@@ -973,7 +974,7 @@ index 740a8dcd3d8c..65c88077908e 100644
|
||||
GL_APICALL void GL_APIENTRY glInvalidateReadbackBufferShadowDataCHROMIUM (GLidBuffer buffer_id);
|
||||
// (used for CHROMIUM_nonblocking_readback implementation)
|
||||
diff --git gpu/command_buffer/service/BUILD.gn gpu/command_buffer/service/BUILD.gn
|
||||
index c0fd9edb8ad3..6df357123182 100644
|
||||
index 24c15709c327..36264c1665ff 100644
|
||||
--- gpu/command_buffer/service/BUILD.gn
|
||||
+++ gpu/command_buffer/service/BUILD.gn
|
||||
@@ -106,6 +106,8 @@ target(link_target_type, "gles2_sources") {
|
||||
@@ -986,10 +987,10 @@ index c0fd9edb8ad3..6df357123182 100644
|
||||
"buffer_manager.cc",
|
||||
"buffer_manager.h",
|
||||
diff --git gpu/command_buffer/service/gles2_cmd_decoder.cc gpu/command_buffer/service/gles2_cmd_decoder.cc
|
||||
index a3caf17ca6af..64ee2559e638 100644
|
||||
index e3f5d83ca54f..67e1bdee5068 100644
|
||||
--- gpu/command_buffer/service/gles2_cmd_decoder.cc
|
||||
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc
|
||||
@@ -36,6 +36,7 @@
|
||||
@@ -38,6 +38,7 @@
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "base/trace_event/trace_event.h"
|
||||
#include "build/build_config.h"
|
||||
@@ -997,7 +998,7 @@ index a3caf17ca6af..64ee2559e638 100644
|
||||
#include "gpu/command_buffer/common/debug_marker_manager.h"
|
||||
#include "gpu/command_buffer/common/gles2_cmd_format.h"
|
||||
#include "gpu/command_buffer/common/gles2_cmd_utils.h"
|
||||
@@ -901,6 +902,13 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
|
||||
@@ -909,6 +910,13 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
|
||||
return group_->mailbox_manager();
|
||||
}
|
||||
|
||||
@@ -1011,7 +1012,7 @@ index a3caf17ca6af..64ee2559e638 100644
|
||||
ImageManager* image_manager() { return group_->image_manager(); }
|
||||
|
||||
VertexArrayManager* vertex_array_manager() {
|
||||
@@ -2606,6 +2614,8 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
|
||||
@@ -2620,6 +2628,8 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
|
||||
|
||||
std::unique_ptr<VertexArrayManager> vertex_array_manager_;
|
||||
|
||||
@@ -1020,7 +1021,7 @@ index a3caf17ca6af..64ee2559e638 100644
|
||||
base::flat_set<scoped_refptr<Buffer>> writes_submitted_but_not_completed_;
|
||||
|
||||
// The format of the back buffer_
|
||||
@@ -5524,6 +5534,59 @@ error::Error GLES2DecoderImpl::HandleDestroyGpuFenceCHROMIUM(
|
||||
@@ -5580,6 +5590,59 @@ error::Error GLES2DecoderImpl::HandleDestroyGpuFenceCHROMIUM(
|
||||
return error::kNoError;
|
||||
}
|
||||
|
||||
@@ -1081,10 +1082,10 @@ index a3caf17ca6af..64ee2559e638 100644
|
||||
for (auto it = saved_back_textures_.begin(); it != saved_back_textures_.end();
|
||||
++it) {
|
||||
diff --git gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
|
||||
index f2b5153e3a36..afe5c7621f51 100644
|
||||
index 805d9ae94712..6723682670e4 100644
|
||||
--- gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
|
||||
+++ gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
|
||||
@@ -10,6 +10,7 @@
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "base/callback.h"
|
||||
#include "base/stl_util.h"
|
||||
#include "base/strings/string_split.h"
|
||||
@@ -1092,7 +1093,7 @@ index f2b5153e3a36..afe5c7621f51 100644
|
||||
#include "gpu/command_buffer/service/command_buffer_service.h"
|
||||
#include "gpu/command_buffer/service/decoder_client.h"
|
||||
#include "gpu/command_buffer/service/feature_info.h"
|
||||
@@ -2499,6 +2500,67 @@ error::Error GLES2DecoderPassthroughImpl::CheckSwapBuffersResult(
|
||||
@@ -2501,6 +2502,67 @@ error::Error GLES2DecoderPassthroughImpl::CheckSwapBuffersResult(
|
||||
return error::kNoError;
|
||||
}
|
||||
|
||||
@@ -1191,10 +1192,10 @@ index ed682013976b..4bc28fe68a5d 100644
|
||||
size_t active_texture_unit_;
|
||||
|
||||
diff --git ui/compositor/compositor.cc ui/compositor/compositor.cc
|
||||
index 74e8d5b78d53..c169a5672ac1 100644
|
||||
index 311c26b6e0ea..8583fdfecc19 100644
|
||||
--- ui/compositor/compositor.cc
|
||||
+++ ui/compositor/compositor.cc
|
||||
@@ -516,6 +516,16 @@ scoped_refptr<CompositorVSyncManager> Compositor::vsync_manager() const {
|
||||
@@ -555,6 +555,16 @@ scoped_refptr<CompositorVSyncManager> Compositor::vsync_manager() const {
|
||||
return vsync_manager_;
|
||||
}
|
||||
|
||||
@@ -1212,12 +1213,12 @@ index 74e8d5b78d53..c169a5672ac1 100644
|
||||
observer_list_.AddObserver(observer);
|
||||
}
|
||||
diff --git ui/compositor/compositor.h ui/compositor/compositor.h
|
||||
index 313431f82ee7..e71fb0739ffc 100644
|
||||
index 29784c677f4b..6e82af0d6aab 100644
|
||||
--- ui/compositor/compositor.h
|
||||
+++ ui/compositor/compositor.h
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "components/viz/common/surfaces/frame_sink_id.h"
|
||||
#include "components/viz/common/surfaces/local_surface_id.h"
|
||||
#include "components/viz/common/surfaces/local_surface_id_allocation.h"
|
||||
#include "components/viz/host/host_frame_sink_client.h"
|
||||
+#include "components/viz/service/display/software_output_device.h"
|
||||
#include "third_party/skia/include/core/SkColor.h"
|
||||
@@ -1250,7 +1251,7 @@ index 313431f82ee7..e71fb0739ffc 100644
|
||||
// Compositor object to take care of GPU painting.
|
||||
// A Browser compositor object is responsible for generating the final
|
||||
// displayable form of pixels comprising a single widget's contents. It draws an
|
||||
@@ -232,6 +246,9 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -235,6 +249,9 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
// Schedules a redraw of the layer tree associated with this compositor.
|
||||
void ScheduleDraw();
|
||||
|
||||
@@ -1260,7 +1261,7 @@ index 313431f82ee7..e71fb0739ffc 100644
|
||||
// Sets the root of the layer tree drawn by this Compositor. The root layer
|
||||
// must have no parent. The compositor's root layer is reset if the root layer
|
||||
// is destroyed. NULL can be passed to reset the root layer, in which case the
|
||||
@@ -334,6 +351,10 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -348,6 +365,10 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
return task_runner_;
|
||||
}
|
||||
|
||||
@@ -1271,7 +1272,7 @@ index 313431f82ee7..e71fb0739ffc 100644
|
||||
// Compositor does not own observers. It is the responsibility of the
|
||||
// observer to remove itself when it is done observing.
|
||||
void AddObserver(CompositorObserver* observer);
|
||||
@@ -442,6 +463,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -458,6 +479,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
ui::ContextFactory* context_factory_;
|
||||
ui::ContextFactoryPrivate* context_factory_private_;
|
||||
|
||||
@@ -1280,7 +1281,7 @@ index 313431f82ee7..e71fb0739ffc 100644
|
||||
// The root of the Layer tree drawn by this compositor.
|
||||
Layer* root_layer_ = nullptr;
|
||||
|
||||
@@ -476,6 +499,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -492,6 +515,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
|
||||
ExternalBeginFrameClient* const external_begin_frame_client_;
|
||||
|
||||
|
Reference in New Issue
Block a user