|
@@ -66,7 +66,7 @@ index cb69e08c0185f55497089505ed5b226e57140321..362f28accc248248f3bcb54955c23528
|
|
|
!command_line->HasSwitch(switches::kUIDisablePartialSwap);
|
|
|
#if defined(OS_MACOSX)
|
|
|
diff --git a/components/viz/service/display/gl_renderer.cc b/components/viz/service/display/gl_renderer.cc
|
|
|
-index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed63bf5a0d 100644
|
|
|
+index 8d07647a7f4de248d3401a04b3bd9006c7a04bfe..e488ef6f758502dacd7c5ffee45987fb6bb77d49 100644
|
|
|
--- a/components/viz/service/display/gl_renderer.cc
|
|
|
+++ b/components/viz/service/display/gl_renderer.cc
|
|
|
@@ -84,6 +84,9 @@
|
|
@@ -79,7 +79,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
namespace viz {
|
|
|
namespace {
|
|
|
|
|
|
-@@ -589,8 +592,9 @@ void GLRenderer::DoDrawQuad(const DrawQuad* quad,
|
|
|
+@@ -588,8 +591,9 @@ void GLRenderer::DoDrawQuad(const DrawQuad* quad,
|
|
|
void GLRenderer::DrawDebugBorderQuad(const DebugBorderDrawQuad* quad) {
|
|
|
SetBlendEnabled(quad->ShouldDrawWithBlending());
|
|
|
|
|
@@ -91,7 +91,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
|
|
|
// Use the full quad_rect for debug quads to not move the edges based on
|
|
|
// partial swaps.
|
|
|
-@@ -1520,7 +1524,8 @@ void GLRenderer::ChooseRPDQProgram(DrawRenderPassDrawQuadParams* params,
|
|
|
+@@ -1547,7 +1551,8 @@ void GLRenderer::ChooseRPDQProgram(DrawRenderPassDrawQuadParams* params,
|
|
|
params->use_color_matrix, tint_gl_composited_content_,
|
|
|
params->apply_shader_based_rounded_corner &&
|
|
|
ShouldApplyRoundedCorner(params->quad)),
|
|
@@ -101,7 +101,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
}
|
|
|
|
|
|
void GLRenderer::UpdateRPDQUniforms(DrawRenderPassDrawQuadParams* params) {
|
|
|
-@@ -1991,7 +1996,8 @@ void GLRenderer::DrawSolidColorQuad(const SolidColorDrawQuad* quad,
|
|
|
+@@ -2018,7 +2023,8 @@ void GLRenderer::DrawSolidColorQuad(const SolidColorDrawQuad* quad,
|
|
|
SetUseProgram(ProgramKey::SolidColor(use_aa ? USE_AA : NO_AA,
|
|
|
tint_gl_composited_content_,
|
|
|
ShouldApplyRoundedCorner(quad)),
|
|
@@ -111,7 +111,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
SetShaderColor(color, opacity);
|
|
|
if (current_program_->rounded_corner_rect_location() != -1) {
|
|
|
SetShaderRoundedCorner(
|
|
|
-@@ -2146,7 +2152,8 @@ void GLRenderer::DrawContentQuadAA(const ContentDrawQuadBase* quad,
|
|
|
+@@ -2173,7 +2179,8 @@ void GLRenderer::DrawContentQuadAA(const ContentDrawQuadBase* quad,
|
|
|
: NON_PREMULTIPLIED_ALPHA,
|
|
|
false, false, tint_gl_composited_content_,
|
|
|
ShouldApplyRoundedCorner(quad)),
|
|
@@ -121,7 +121,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
|
|
|
if (current_program_->tint_color_matrix_location() != -1) {
|
|
|
auto matrix = cc::DebugColors::TintCompositedContentColorTransformMatrix();
|
|
|
-@@ -2242,7 +2249,8 @@ void GLRenderer::DrawContentQuadNoAA(const ContentDrawQuadBase* quad,
|
|
|
+@@ -2269,7 +2276,8 @@ void GLRenderer::DrawContentQuadNoAA(const ContentDrawQuadBase* quad,
|
|
|
!quad->ShouldDrawWithBlending(), has_tex_clamp_rect,
|
|
|
tint_gl_composited_content_,
|
|
|
ShouldApplyRoundedCorner(quad)),
|
|
@@ -131,7 +131,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
|
|
|
if (current_program_->tint_color_matrix_location() != -1) {
|
|
|
auto matrix = cc::DebugColors::TintCompositedContentColorTransformMatrix();
|
|
|
-@@ -2344,7 +2352,8 @@ void GLRenderer::DrawYUVVideoQuad(const YUVVideoDrawQuad* quad,
|
|
|
+@@ -2371,7 +2379,8 @@ void GLRenderer::DrawYUVVideoQuad(const YUVVideoDrawQuad* quad,
|
|
|
// The source color space should never be RGB.
|
|
|
DCHECK_NE(src_color_space, src_color_space.GetAsFullRangeRGB());
|
|
|
|
|
@@ -141,7 +141,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
|
|
|
#if defined(OS_WIN)
|
|
|
// Force sRGB output on Windows for overlay candidate video quads to match
|
|
|
-@@ -2508,7 +2517,8 @@ void GLRenderer::DrawStreamVideoQuad(const StreamVideoDrawQuad* quad,
|
|
|
+@@ -2535,7 +2544,8 @@ void GLRenderer::DrawStreamVideoQuad(const StreamVideoDrawQuad* quad,
|
|
|
|
|
|
SetUseProgram(ProgramKey::VideoStream(tex_coord_precision,
|
|
|
ShouldApplyRoundedCorner(quad)),
|
|
@@ -151,7 +151,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
|
|
|
DCHECK_EQ(GL_TEXTURE0, GetActiveTextureUnit(gl_));
|
|
|
gl_->BindTexture(GL_TEXTURE_EXTERNAL_OES, lock.texture_id());
|
|
|
-@@ -2573,8 +2583,8 @@ void GLRenderer::FlushTextureQuadCache(BoundGeometry flush_binding) {
|
|
|
+@@ -2600,8 +2610,8 @@ void GLRenderer::FlushTextureQuadCache(BoundGeometry flush_binding) {
|
|
|
draw_cache_.nearest_neighbor ? GL_NEAREST : GL_LINEAR);
|
|
|
|
|
|
// Bind the program to the GL state.
|
|
@@ -162,7 +162,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
|
|
|
if (current_program_->rounded_corner_rect_location() != -1) {
|
|
|
SetShaderRoundedCorner(
|
|
|
-@@ -3313,7 +3323,9 @@ void GLRenderer::PrepareGeometry(BoundGeometry binding) {
|
|
|
+@@ -3340,7 +3350,9 @@ void GLRenderer::PrepareGeometry(BoundGeometry binding) {
|
|
|
void GLRenderer::SetUseProgram(const ProgramKey& program_key_no_color,
|
|
|
const gfx::ColorSpace& src_color_space,
|
|
|
const gfx::ColorSpace& dst_color_space) {
|
|
@@ -173,7 +173,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
|
|
|
// If the input color space is PQ, and it did not specify a white level,
|
|
|
// override it with the frame's white level.
|
|
|
-@@ -3695,9 +3707,9 @@ void GLRenderer::CopyRenderPassDrawQuadToOverlayResource(
|
|
|
+@@ -3722,9 +3734,9 @@ void GLRenderer::CopyRenderPassDrawQuadToOverlayResource(
|
|
|
cc::MathUtil::CheckedRoundUp(iosurface_height, iosurface_multiple);
|
|
|
}
|
|
|
|
|
@@ -186,7 +186,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
*new_bounds = gfx::RectF(updated_dst_rect.origin(),
|
|
|
gfx::SizeF((*overlay_texture)->texture.size()));
|
|
|
|
|
|
-@@ -3916,8 +3928,8 @@ void GLRenderer::FlushOverdrawFeedback(const gfx::Rect& output_rect) {
|
|
|
+@@ -3943,8 +3955,8 @@ void GLRenderer::FlushOverdrawFeedback(const gfx::Rect& output_rect) {
|
|
|
|
|
|
PrepareGeometry(SHARED_BINDING);
|
|
|
|
|
@@ -197,7 +197,7 @@ index d9bc455ac5a4a2405becb678f19bba0fddc8ce00..4d9f8be17da2b3b56a3d673c6f1fa6ed
|
|
|
|
|
|
gfx::Transform render_matrix;
|
|
|
render_matrix.Translate(0.5 * output_rect.width() + output_rect.x(),
|
|
|
-@@ -4026,3 +4038,5 @@ gfx::Size GLRenderer::GetRenderPassBackingPixelSize(
|
|
|
+@@ -4053,3 +4065,5 @@ gfx::Size GLRenderer::GetRenderPassBackingPixelSize(
|
|
|
}
|
|
|
|
|
|
} // namespace viz
|
|
@@ -216,18 +216,18 @@ index bf63bb9c03852263e9341c671be1ee4e7c1a3dc2..d06e2f99739298a4de13ebbce5606b68
|
|
|
service_manager::switches::kGpuSandboxAllowSysVShm,
|
|
|
service_manager::switches::kGpuSandboxFailuresFatal,
|
|
|
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
|
|
|
-index c4c55c26bf00373502d319536433485b851af5b0..356fb599f1ef49be6b7a962e471bbd045556979c 100644
|
|
|
+index 043bc132f8946ab66e42dadee9c3e1a548264238..3139ea227d5971f5e325e8847fb3dfcd786853e9 100644
|
|
|
--- a/content/browser/renderer_host/render_process_host_impl.cc
|
|
|
+++ b/content/browser/renderer_host/render_process_host_impl.cc
|
|
|
-@@ -230,6 +230,7 @@
|
|
|
+@@ -227,6 +227,7 @@
|
|
|
+ #include "ui/accessibility/accessibility_switches.h"
|
|
|
#include "ui/base/ui_base_switches.h"
|
|
|
- #include "ui/base/ui_base_switches_util.h"
|
|
|
#include "ui/display/display_switches.h"
|
|
|
+#include "ui/gfx/switches.h"
|
|
|
#include "ui/gl/gl_switches.h"
|
|
|
#include "ui/native_theme/native_theme_features.h"
|
|
|
#include "url/origin.h"
|
|
|
-@@ -3172,6 +3173,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
|
|
|
+@@ -3146,6 +3147,7 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
|
|
|
// Propagate the following switches to the renderer command line (along
|
|
|
// with any associated values) if present in the browser command line.
|
|
|
static const char* const kSwitchNames[] = {
|
|
@@ -236,10 +236,10 @@ index c4c55c26bf00373502d319536433485b851af5b0..356fb599f1ef49be6b7a962e471bbd04
|
|
|
service_manager::switches::kDisableInProcessStackTraces,
|
|
|
service_manager::switches::kDisableSeccompFilterSandbox,
|
|
|
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
|
|
|
-index 6734b39c3f5c48545c4aea477f500b36015c2b99..7795fa943c18836cfada9a45ec01d4114d9d34e8 100644
|
|
|
+index 15ef92df7b986dab587da24c8b93b520893683c9..b87fb42a939522046f00e70aac7dc0d681243159 100644
|
|
|
--- a/content/renderer/render_widget.cc
|
|
|
+++ b/content/renderer/render_widget.cc
|
|
|
-@@ -2671,6 +2671,9 @@ cc::LayerTreeSettings RenderWidget::GenerateLayerTreeSettings(
|
|
|
+@@ -2711,6 +2711,9 @@ cc::LayerTreeSettings RenderWidget::GenerateLayerTreeSettings(
|
|
|
settings.main_frame_before_activation_enabled =
|
|
|
cmd.HasSwitch(cc::switches::kEnableMainFrameBeforeActivation);
|
|
|
|
|
@@ -333,28 +333,27 @@ index 4c47a1132ea3d53b6c63882e98374196ac7ce069..a7f00f426cc6a75d7b94258169633275
|
|
|
DLOG(ERROR) << "Failed to set color space for IOSurface: "
|
|
|
<< color_space.ToString();
|
|
|
diff --git a/ui/gfx/switches.cc b/ui/gfx/switches.cc
|
|
|
-index ba3dbf23d1df7a3b0cc199054f36a88014daa0e7..f8a563a78cee2856da0f2ad556beba19b01a2e59 100644
|
|
|
+index 0f746ead72a2c195321384c9c4ced96d0608fb7b..a9cc7b6d93cdb42c5a9a177e8a09edeb36db8122 100644
|
|
|
--- a/ui/gfx/switches.cc
|
|
|
+++ b/ui/gfx/switches.cc
|
|
|
-@@ -7,6 +7,8 @@
|
|
|
-
|
|
|
- namespace switches {
|
|
|
-
|
|
|
+@@ -10,6 +10,7 @@ namespace switches {
|
|
|
+ // Scale factor to apply to every animation duration. Must be >= 0.0. This will
|
|
|
+ // only apply to LinearAnimation and its subclasses.
|
|
|
+ const char kAnimationDurationScale[] = "animation-duration-scale";
|
|
|
+const char kDisableColorCorrectRendering[] = "disable-color-correct-rendering";
|
|
|
-+
|
|
|
+
|
|
|
// Force disables font subpixel positioning. This affects the character glyph
|
|
|
// sharpness, kerning, hinting and layout.
|
|
|
- const char kDisableFontSubpixelPositioning[] =
|
|
|
diff --git a/ui/gfx/switches.h b/ui/gfx/switches.h
|
|
|
-index 1f0e63383213ac5ebc67691e5e89b501d7480e1b..14e3d1928f7485684b646629f853ea39a616995e 100644
|
|
|
+index abe0a58a9ccbcd1610f728baa5d9a1155402af0c..e48d800b432f77d364541c432a1ce8865e888766 100644
|
|
|
--- a/ui/gfx/switches.h
|
|
|
+++ b/ui/gfx/switches.h
|
|
|
-@@ -10,6 +10,8 @@
|
|
|
-
|
|
|
+@@ -11,6 +11,8 @@
|
|
|
namespace switches {
|
|
|
|
|
|
+ GFX_SWITCHES_EXPORT extern const char kAnimationDurationScale[];
|
|
|
+GFX_SWITCHES_EXPORT extern const char kDisableColorCorrectRendering[];
|
|
|
+
|
|
|
GFX_SWITCHES_EXPORT extern const char kDisableFontSubpixelPositioning[];
|
|
|
-
|
|
|
+ GFX_SWITCHES_EXPORT extern const char kEnableNativeGpuMemoryBuffers[];
|
|
|
GFX_SWITCHES_EXPORT extern const char kForcePrefersReducedMotion[];
|