mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium version 72.0.3615.0 (#609159)
- 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.
This commit is contained in:
@@ -27,7 +27,7 @@ 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 41ca733fce93..bc89a78742b5 100644
|
||||
index 1795f6ed4724..21fe8d39fa8a 100644
|
||||
--- content/browser/compositor/gpu_process_transport_factory.cc
|
||||
+++ content/browser/compositor/gpu_process_transport_factory.cc
|
||||
@@ -208,6 +208,18 @@ GpuProcessTransportFactory::~GpuProcessTransportFactory() {
|
||||
@@ -351,10 +351,10 @@ index 582388dd576c..103c9374e535 100644
|
||||
base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
|
||||
weak_ptr_factory_;
|
||||
diff --git gpu/GLES2/gl2chromium_autogen.h gpu/GLES2/gl2chromium_autogen.h
|
||||
index f3e9549fdaf4..3de2d2800400 100644
|
||||
index 0fafe61704a0..a9bb72f3494b 100644
|
||||
--- gpu/GLES2/gl2chromium_autogen.h
|
||||
+++ gpu/GLES2/gl2chromium_autogen.h
|
||||
@@ -407,6 +407,10 @@
|
||||
@@ -405,6 +405,10 @@
|
||||
GLES2_GET_FUN(CreateClientGpuFenceCHROMIUM)
|
||||
#define glWaitGpuFenceCHROMIUM GLES2_GET_FUN(WaitGpuFenceCHROMIUM)
|
||||
#define glDestroyGpuFenceCHROMIUM GLES2_GET_FUN(DestroyGpuFenceCHROMIUM)
|
||||
@@ -366,10 +366,10 @@ index f3e9549fdaf4..3de2d2800400 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 1dc8c4e0cf5d..c9f52264655e 100755
|
||||
index 4c09b8ca8ca5..52b31fb938b9 100755
|
||||
--- gpu/command_buffer/build_gles2_cmd_buffer.py
|
||||
+++ gpu/command_buffer/build_gles2_cmd_buffer.py
|
||||
@@ -4085,6 +4085,35 @@ _FUNCTION_INFO = {
|
||||
@@ -4084,6 +4084,35 @@ _FUNCTION_INFO = {
|
||||
'extension': 'CHROMIUM_gpu_fence',
|
||||
'extension_flag': 'chromium_gpu_fence',
|
||||
},
|
||||
@@ -406,10 +406,10 @@ index 1dc8c4e0cf5d..c9f52264655e 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 6d49af7c1fd1..03ac64352f2f 100644
|
||||
index 5207e5f77ece..b4365999a79e 100644
|
||||
--- gpu/command_buffer/client/gles2_c_lib_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_c_lib_autogen.h
|
||||
@@ -1824,6 +1824,20 @@ void GL_APIENTRY GLES2WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
@@ -1818,6 +1818,20 @@ void GL_APIENTRY GLES2WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
void GL_APIENTRY GLES2DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
gles2::GetGLContext()->DestroyGpuFenceCHROMIUM(gpu_fence_id);
|
||||
}
|
||||
@@ -430,7 +430,7 @@ index 6d49af7c1fd1..03ac64352f2f 100644
|
||||
void GL_APIENTRY
|
||||
GLES2InvalidateReadbackBufferShadowDataCHROMIUM(GLuint buffer_id) {
|
||||
gles2::GetGLContext()->InvalidateReadbackBufferShadowDataCHROMIUM(buffer_id);
|
||||
@@ -3214,6 +3228,22 @@ extern const NameToFunc g_gles2_function_table[] = {
|
||||
@@ -3216,6 +3230,22 @@ extern const NameToFunc g_gles2_function_table[] = {
|
||||
"glDestroyGpuFenceCHROMIUM",
|
||||
reinterpret_cast<GLES2FunctionPointer>(glDestroyGpuFenceCHROMIUM),
|
||||
},
|
||||
@@ -454,10 +454,10 @@ index 6d49af7c1fd1..03ac64352f2f 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 cec084199397..bf4e3609776b 100644
|
||||
index f2da35b038e1..3989691bda6d 100644
|
||||
--- gpu/command_buffer/client/gles2_cmd_helper_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_cmd_helper_autogen.h
|
||||
@@ -3377,6 +3377,42 @@ void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
@@ -3364,6 +3364,42 @@ void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -501,10 +501,10 @@ index cec084199397..bf4e3609776b 100644
|
||||
GLint shm_id,
|
||||
GLuint shm_offset,
|
||||
diff --git gpu/command_buffer/client/gles2_implementation.cc gpu/command_buffer/client/gles2_implementation.cc
|
||||
index 84ce01c761cb..1e0cd08954e1 100644
|
||||
index 29e280bc7f86..dc85ccde26a7 100644
|
||||
--- gpu/command_buffer/client/gles2_implementation.cc
|
||||
+++ gpu/command_buffer/client/gles2_implementation.cc
|
||||
@@ -7285,6 +7285,22 @@ void GLES2Implementation::Viewport(GLint x,
|
||||
@@ -7286,6 +7286,22 @@ void GLES2Implementation::Viewport(GLint x,
|
||||
CheckGLError();
|
||||
}
|
||||
|
||||
@@ -512,13 +512,13 @@ index 84ce01c761cb..1e0cd08954e1 100644
|
||||
+ GLsizei width,
|
||||
+ GLsizei height) {
|
||||
+ typedef cmds::CreateSharedTexture::Result Result;
|
||||
+ Result* result = GetResultAs<Result*>();
|
||||
+ auto result = GetResultAs<Result>();
|
||||
+ if (!result) {
|
||||
+ return 0;
|
||||
+ }
|
||||
+ *result = 0;
|
||||
+ helper_->CreateSharedTexture(texture_id, width, height, GetResultShmId(),
|
||||
+ GetResultShmOffset());
|
||||
+ result.offset());
|
||||
+
|
||||
+ WaitForCmd();
|
||||
+ return *result;
|
||||
@@ -528,10 +528,10 @@ index 84ce01c761cb..1e0cd08954e1 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 4480c022f894..ddb058ba7f8f 100644
|
||||
index b520b91d1398..d9c1a7ec7cf3 100644
|
||||
--- gpu/command_buffer/client/gles2_implementation_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_implementation_autogen.h
|
||||
@@ -1279,6 +1279,16 @@ void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
@@ -1276,6 +1276,16 @@ void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
|
||||
void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
|
||||
@@ -549,10 +549,10 @@ index 4480c022f894..ddb058ba7f8f 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 50c53a67d1c8..9f3d1f2b9c17 100644
|
||||
index fbfd72ccf8eb..d0c8df598a08 100644
|
||||
--- gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_implementation_impl_autogen.h
|
||||
@@ -3667,6 +3667,30 @@ void GLES2Implementation::DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
@@ -3662,6 +3662,30 @@ void GLES2Implementation::DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
CheckGLError();
|
||||
}
|
||||
|
||||
@@ -584,10 +584,10 @@ index 50c53a67d1c8..9f3d1f2b9c17 100644
|
||||
GLenum target,
|
||||
GLenum attachment,
|
||||
diff --git gpu/command_buffer/client/gles2_interface_autogen.h gpu/command_buffer/client/gles2_interface_autogen.h
|
||||
index f91b0f80945a..597a398e28d2 100644
|
||||
index 181c4a60d294..4ce350b3633a 100644
|
||||
--- gpu/command_buffer/client/gles2_interface_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_interface_autogen.h
|
||||
@@ -953,6 +953,12 @@ virtual GLuint CreateGpuFenceCHROMIUM() = 0;
|
||||
@@ -950,6 +950,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;
|
||||
@@ -601,10 +601,10 @@ index f91b0f80945a..597a398e28d2 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 4b4b03b5df6c..90b3b7b3726d 100644
|
||||
index 3d4833bb8ff0..43074fe25fd8 100644
|
||||
--- gpu/command_buffer/client/gles2_interface_stub_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_interface_stub_autogen.h
|
||||
@@ -922,6 +922,12 @@ GLuint CreateGpuFenceCHROMIUM() override;
|
||||
@@ -920,6 +920,12 @@ GLuint CreateGpuFenceCHROMIUM() override;
|
||||
GLuint CreateClientGpuFenceCHROMIUM(ClientGpuFence source) override;
|
||||
void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
@@ -618,10 +618,10 @@ index 4b4b03b5df6c..90b3b7b3726d 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 24775520f452..c57ffb576efc 100644
|
||||
index f5ebca07a38f..94a0a254f5ba 100644
|
||||
--- gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h
|
||||
@@ -1240,6 +1240,14 @@ GLuint GLES2InterfaceStub::CreateClientGpuFenceCHROMIUM(
|
||||
@@ -1235,6 +1235,14 @@ GLuint GLES2InterfaceStub::CreateClientGpuFenceCHROMIUM(
|
||||
}
|
||||
void GLES2InterfaceStub::WaitGpuFenceCHROMIUM(GLuint /* gpu_fence_id */) {}
|
||||
void GLES2InterfaceStub::DestroyGpuFenceCHROMIUM(GLuint /* gpu_fence_id */) {}
|
||||
@@ -637,10 +637,10 @@ index 24775520f452..c57ffb576efc 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 77b2f0371639..fcab9d085024 100644
|
||||
index caa12933ef3d..60e009ce03b9 100644
|
||||
--- gpu/command_buffer/client/gles2_trace_implementation_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_trace_implementation_autogen.h
|
||||
@@ -922,6 +922,12 @@ GLuint CreateGpuFenceCHROMIUM() override;
|
||||
@@ -920,6 +920,12 @@ GLuint CreateGpuFenceCHROMIUM() override;
|
||||
GLuint CreateClientGpuFenceCHROMIUM(ClientGpuFence source) override;
|
||||
void WaitGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
void DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) override;
|
||||
@@ -654,10 +654,10 @@ index 77b2f0371639..fcab9d085024 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 e345903ac86e..c9c2cfd6a357 100644
|
||||
index 6ddd340314ad..3840254d80d7 100644
|
||||
--- gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
|
||||
+++ gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h
|
||||
@@ -2645,6 +2645,28 @@ void GLES2TraceImplementation::DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
@@ -2637,6 +2637,28 @@ void GLES2TraceImplementation::DestroyGpuFenceCHROMIUM(GLuint gpu_fence_id) {
|
||||
gl_->DestroyGpuFenceCHROMIUM(gpu_fence_id);
|
||||
}
|
||||
|
||||
@@ -687,10 +687,10 @@ index e345903ac86e..c9c2cfd6a357 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 2d157ecf0d47..b53a6530ea99 100644
|
||||
index 56929b36203c..d0b1d4b87335 100644
|
||||
--- gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
||||
+++ gpu/command_buffer/common/gles2_cmd_format_autogen.h
|
||||
@@ -16620,6 +16620,193 @@ static_assert(offsetof(DestroyGpuFenceCHROMIUM, header) == 0,
|
||||
@@ -16566,6 +16566,193 @@ static_assert(offsetof(DestroyGpuFenceCHROMIUM, header) == 0,
|
||||
static_assert(offsetof(DestroyGpuFenceCHROMIUM, gpu_fence_id) == 4,
|
||||
"offset of DestroyGpuFenceCHROMIUM gpu_fence_id should be 4");
|
||||
|
||||
@@ -885,10 +885,10 @@ index 2d157ecf0d47..b53a6530ea99 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 eb73a3a732a8..538ffd3e3b32 100644
|
||||
index 10b420f628d4..e4be58f568f8 100644
|
||||
--- gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
||||
+++ gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
|
||||
@@ -5518,6 +5518,52 @@ TEST_F(GLES2FormatTest, DestroyGpuFenceCHROMIUM) {
|
||||
@@ -5482,6 +5482,52 @@ TEST_F(GLES2FormatTest, DestroyGpuFenceCHROMIUM) {
|
||||
CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
|
||||
}
|
||||
|
||||
@@ -942,28 +942,27 @@ index eb73a3a732a8..538ffd3e3b32 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 6530d2b4761a..f5a1e497ebbf 100644
|
||||
index 753b9c309604..6958e6c5cd00 100644
|
||||
--- gpu/command_buffer/common/gles2_cmd_ids_autogen.h
|
||||
+++ gpu/command_buffer/common/gles2_cmd_ids_autogen.h
|
||||
@@ -349,7 +349,12 @@
|
||||
OP(DestroyGpuFenceCHROMIUM) /* 590 */ \
|
||||
OP(SetReadbackBufferShadowAllocationINTERNAL) /* 591 */ \
|
||||
OP(FramebufferTextureMultiviewLayeredANGLE) /* 592 */ \
|
||||
- OP(MaxShaderCompilerThreadsKHR) /* 593 */
|
||||
+ OP(MaxShaderCompilerThreadsKHR) /* 593 */ \
|
||||
+ OP(CreateSharedTexture) /* 594 */ \
|
||||
+ OP(LockSharedTexture) /* 595 */ \
|
||||
+ OP(UnlockSharedTexture) /* 596 */ \
|
||||
+ OP(DeleteSharedTexture) /* 597 */
|
||||
+
|
||||
@@ -351,7 +351,11 @@
|
||||
OP(MaxShaderCompilerThreadsKHR) /* 592 */ \
|
||||
OP(CreateAndTexStorage2DSharedImageINTERNALImmediate) /* 593 */ \
|
||||
OP(BeginSharedImageAccessDirectCHROMIUM) /* 594 */ \
|
||||
- OP(EndSharedImageAccessDirectCHROMIUM) /* 595 */
|
||||
+ OP(EndSharedImageAccessDirectCHROMIUM) /* 595 */ \
|
||||
+ OP(CreateSharedTexture) /* 596 */ \
|
||||
+ OP(LockSharedTexture) /* 597 */ \
|
||||
+ OP(UnlockSharedTexture) /* 598 */ \
|
||||
+ OP(DeleteSharedTexture) /* 599 */
|
||||
|
||||
enum CommandId {
|
||||
kOneBeforeStartPoint =
|
||||
diff --git gpu/command_buffer/gles2_cmd_buffer_functions.txt gpu/command_buffer/gles2_cmd_buffer_functions.txt
|
||||
index 1100fe092163..0797e3dfb7d0 100644
|
||||
index 7a14db0357ad..89258f5ec0dd 100644
|
||||
--- gpu/command_buffer/gles2_cmd_buffer_functions.txt
|
||||
+++ gpu/command_buffer/gles2_cmd_buffer_functions.txt
|
||||
@@ -398,6 +398,12 @@ GL_APICALL GLuint GL_APIENTRY glCreateClientGpuFenceCHROMIUM (ClientGpuFen
|
||||
@@ -396,6 +396,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);
|
||||
|
||||
@@ -977,10 +976,10 @@ index 1100fe092163..0797e3dfb7d0 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 67136e0045b7..84cfd708b062 100644
|
||||
index 73f1cd7a60af..2bde69b3842b 100644
|
||||
--- gpu/command_buffer/service/BUILD.gn
|
||||
+++ gpu/command_buffer/service/BUILD.gn
|
||||
@@ -105,6 +105,8 @@ target(link_target_type, "gles2_sources") {
|
||||
@@ -106,6 +106,8 @@ target(link_target_type, "gles2_sources") {
|
||||
visibility = [ "//gpu/*" ]
|
||||
|
||||
sources = [
|
||||
@@ -990,7 +989,7 @@ index 67136e0045b7..84cfd708b062 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 6395b50373bc..c430882924bc 100644
|
||||
index 5cbea967b35a..25f7f3d992fa 100644
|
||||
--- gpu/command_buffer/service/gles2_cmd_decoder.cc
|
||||
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc
|
||||
@@ -34,6 +34,7 @@
|
||||
@@ -1001,7 +1000,7 @@ index 6395b50373bc..c430882924bc 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"
|
||||
@@ -883,6 +884,13 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
|
||||
@@ -888,6 +889,13 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
|
||||
return group_->mailbox_manager();
|
||||
}
|
||||
|
||||
@@ -1015,7 +1014,7 @@ index 6395b50373bc..c430882924bc 100644
|
||||
ImageManager* image_manager() { return group_->image_manager(); }
|
||||
|
||||
VertexArrayManager* vertex_array_manager() {
|
||||
@@ -2526,6 +2534,8 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
|
||||
@@ -2533,6 +2541,8 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
|
||||
|
||||
std::unique_ptr<VertexArrayManager> vertex_array_manager_;
|
||||
|
||||
@@ -1024,7 +1023,7 @@ index 6395b50373bc..c430882924bc 100644
|
||||
base::flat_set<scoped_refptr<Buffer>> writes_submitted_but_not_completed_;
|
||||
|
||||
// The format of the back buffer_
|
||||
@@ -5424,6 +5434,59 @@ error::Error GLES2DecoderImpl::HandleDestroyGpuFenceCHROMIUM(
|
||||
@@ -5437,6 +5447,59 @@ error::Error GLES2DecoderImpl::HandleDestroyGpuFenceCHROMIUM(
|
||||
return error::kNoError;
|
||||
}
|
||||
|
||||
@@ -1085,7 +1084,7 @@ index 6395b50373bc..c430882924bc 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 087f58771c7d..01187acdf298 100644
|
||||
index b363a2f5849d..5e5404dfb1af 100644
|
||||
--- gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
|
||||
+++ gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
|
||||
@@ -9,6 +9,7 @@
|
||||
@@ -1096,7 +1095,7 @@ index 087f58771c7d..01187acdf298 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"
|
||||
@@ -2461,6 +2462,67 @@ error::Error GLES2DecoderPassthroughImpl::CheckSwapBuffersResult(
|
||||
@@ -2478,6 +2479,67 @@ error::Error GLES2DecoderPassthroughImpl::CheckSwapBuffersResult(
|
||||
return error::kNoError;
|
||||
}
|
||||
|
||||
@@ -1165,7 +1164,7 @@ index 087f58771c7d..01187acdf298 100644
|
||||
GLES2DecoderPassthroughImpl::TextureTarget
|
||||
GLES2DecoderPassthroughImpl::GLenumToTextureTarget(GLenum target) {
|
||||
diff --git gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
|
||||
index a987f08a62ae..76b11e83a5e3 100644
|
||||
index 4a3fa61c59b6..3ad6f924c30a 100644
|
||||
--- gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
|
||||
+++ gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h
|
||||
@@ -45,6 +45,7 @@ class SharedImageRepresentationGLTexturePassthrough;
|
||||
@@ -1176,7 +1175,7 @@ index a987f08a62ae..76b11e83a5e3 100644
|
||||
class GPUTracer;
|
||||
class PassthroughAbstractTextureImpl;
|
||||
|
||||
@@ -372,6 +373,8 @@ class GPU_GLES2_EXPORT GLES2DecoderPassthroughImpl : public GLES2Decoder {
|
||||
@@ -374,6 +375,8 @@ class GPU_GLES2_EXPORT GLES2DecoderPassthroughImpl : public GLES2Decoder {
|
||||
|
||||
void SetOptionalExtensionsRequestedForTesting(bool request_extensions);
|
||||
|
||||
@@ -1185,7 +1184,7 @@ index a987f08a62ae..76b11e83a5e3 100644
|
||||
void* GetScratchMemory(size_t size);
|
||||
|
||||
template <typename T>
|
||||
@@ -573,6 +576,8 @@ class GPU_GLES2_EXPORT GLES2DecoderPassthroughImpl : public GLES2Decoder {
|
||||
@@ -575,6 +578,8 @@ class GPU_GLES2_EXPORT GLES2DecoderPassthroughImpl : public GLES2Decoder {
|
||||
|
||||
std::unique_ptr<GpuFenceManager> gpu_fence_manager_;
|
||||
|
||||
@@ -1195,10 +1194,10 @@ index a987f08a62ae..76b11e83a5e3 100644
|
||||
size_t active_texture_unit_;
|
||||
|
||||
diff --git ui/compositor/compositor.cc ui/compositor/compositor.cc
|
||||
index 8662b553658e..44e192faa1d2 100644
|
||||
index 3e8c3daf2ccf..9a8121451525 100644
|
||||
--- ui/compositor/compositor.cc
|
||||
+++ ui/compositor/compositor.cc
|
||||
@@ -539,6 +539,16 @@ void Compositor::OnNeedsExternalBeginFrames(bool needs_begin_frames) {
|
||||
@@ -535,6 +535,16 @@ void Compositor::OnNeedsExternalBeginFrames(bool needs_begin_frames) {
|
||||
needs_external_begin_frames_ = needs_begin_frames;
|
||||
}
|
||||
|
||||
@@ -1216,7 +1215,7 @@ index 8662b553658e..44e192faa1d2 100644
|
||||
observer_list_.AddObserver(observer);
|
||||
}
|
||||
diff --git ui/compositor/compositor.h ui/compositor/compositor.h
|
||||
index 92021bba285a..448b49db14af 100644
|
||||
index 728cbd34b849..88c48e21be8c 100644
|
||||
--- ui/compositor/compositor.h
|
||||
+++ ui/compositor/compositor.h
|
||||
@@ -26,6 +26,7 @@
|
||||
@@ -1227,7 +1226,7 @@ index 92021bba285a..448b49db14af 100644
|
||||
#include "third_party/skia/include/core/SkColor.h"
|
||||
#include "third_party/skia/include/core/SkMatrix44.h"
|
||||
#include "ui/compositor/compositor_animation_observer.h"
|
||||
@@ -160,6 +161,8 @@ class COMPOSITOR_EXPORT ContextFactoryPrivate {
|
||||
@@ -159,6 +160,8 @@ class COMPOSITOR_EXPORT ContextFactoryPrivate {
|
||||
const viz::BeginFrameArgs& args) = 0;
|
||||
|
||||
virtual void SetOutputIsSecure(Compositor* compositor, bool secure) = 0;
|
||||
@@ -1236,7 +1235,7 @@ index 92021bba285a..448b49db14af 100644
|
||||
};
|
||||
|
||||
// This class abstracts the creation of the 3D context for the compositor. It is
|
||||
@@ -195,6 +198,17 @@ class COMPOSITOR_EXPORT ContextFactory {
|
||||
@@ -194,6 +197,17 @@ class COMPOSITOR_EXPORT ContextFactory {
|
||||
virtual bool SyncTokensRequiredForDisplayCompositor() = 0;
|
||||
};
|
||||
|
||||
@@ -1254,7 +1253,7 @@ index 92021bba285a..448b49db14af 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
|
||||
@@ -239,6 +253,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();
|
||||
|
||||
@@ -1264,7 +1263,7 @@ index 92021bba285a..448b49db14af 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
|
||||
@@ -351,6 +368,10 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -347,6 +364,10 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
return task_runner_;
|
||||
}
|
||||
|
||||
@@ -1275,7 +1274,7 @@ index 92021bba285a..448b49db14af 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);
|
||||
@@ -452,6 +473,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -448,6 +469,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
ui::ContextFactory* context_factory_;
|
||||
ui::ContextFactoryPrivate* context_factory_private_;
|
||||
|
||||
@@ -1284,7 +1283,7 @@ index 92021bba285a..448b49db14af 100644
|
||||
// The root of the Layer tree drawn by this compositor.
|
||||
Layer* root_layer_ = nullptr;
|
||||
|
||||
@@ -488,6 +511,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -484,6 +507,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
ExternalBeginFrameClient* external_begin_frame_client_ = nullptr;
|
||||
bool needs_external_begin_frames_ = false;
|
||||
|
||||
|
Reference in New Issue
Block a user