|
|
cc: Use the correct internal format for glCopyTexImage2D calls.
This uses the correct format for glCopyTexImage2D calls from the
default framebuffer (for the root renderpass). This function is used
for the implementation of backdrop filters.
Currently it uses GL_RGBA, but it is not valid to add a channel, so
if the framebuffer is only RGB, then we must use GL_RGB or it will fail.
This is demonstrated by the backdrop filter layout tests once they
use a cc::Display for doing GL drawing, instead of the current method
with a MailboxOutputSurface, which happens to provide an RGBA
framebuffer.
The layout tests are:
css3/filters/backdrop-filter-rendering.html
css3/filters/backdrop-filter-rendering-no-background.html
This also changes the ContextProvider used by cc pixel tests
to drop the alpha. With that, a number of pixel tests require
new baselines, as the background becomes black instead of
transparent, and some tests use background filters or leave some
pixels undrawn.
With the change to the pixel tests, but without the change in
GLRenderer, many cc pixel tests fail showing black for any
background filter, as exhibited by bug 612238, along with the
error "GL ERROR :GL_INVALID_OPERATION : glCopyTexImage2D:
incompatible format".
R=fsamuel@chromium.org, piman@chromium.org, sievers
BUG= 311404, 612238
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/a85bd24aa12d06f088ec083a01ceaf4ef54ead67
Cr-Commit-Position: refs/heads/master@{#401438}
Total comments: 1
Total comments: 2
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+329 lines, -72 lines) |
Patch |
 |
M |
android_webview/browser/aw_render_thread_context_provider.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/aw_render_thread_context_provider.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
android_webview/browser/parent_output_surface.h
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
android_webview/browser/parent_output_surface.cc
|
View
|
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
blimp/client/feature/compositor/blimp_context_provider.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
blimp/client/feature/compositor/blimp_context_provider.cc
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
blimp/client/feature/compositor/blimp_output_surface.h
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
blimp/client/feature/compositor/blimp_output_surface.cc
|
View
|
1
2
3
4
|
3 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer.cc
|
View
|
4
5
|
5 chunks |
+15 lines, -5 lines |
0 comments
|
Download
|
 |
M |
cc/output/gl_renderer_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/output/output_surface.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/output/output_surface_unittest.cc
|
View
|
|
3 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/output/overlay_unittest.cc
|
View
|
|
2 chunks |
+7 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/output/renderer_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/resources/resource_format.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/resources/resource_format.cc
|
View
|
|
1 chunk |
+26 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_display_output_surface.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/surfaces/surface_display_output_surface.cc
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/data/background_filter_blur_off_axis.png
|
View
|
1
|
Binary file |
0 comments
|
Download
|
 |
M |
cc/test/data/background_filter_blur_outsets.png
|
View
|
1
|
Binary file |
0 comments
|
Download
|
 |
M |
cc/test/data/background_filter_rotated_gl.png
|
View
|
1
|
Binary file |
0 comments
|
Download
|
 |
M |
cc/test/data/force_anti_aliasing_off.png
|
View
|
1
|
Binary file |
0 comments
|
Download
|
 |
M |
cc/test/fake_output_surface.h
|
View
|
|
2 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_output_surface.cc
|
View
|
|
2 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test_delegating_output_surface.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test_delegating_output_surface.cc
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test_output_surface.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/pixel_test_output_surface.cc
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/test_in_process_context_provider.cc
|
View
|
1
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_host_pixeltest_filters.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
M |
components/display_compositor/buffer_queue.h
|
View
|
1
2
|
4 chunks |
+12 lines, -11 lines |
0 comments
|
Download
|
 |
M |
components/display_compositor/buffer_queue.cc
|
View
|
|
5 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/lib/output_surface.cc
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/output_surface.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/surfaces/direct_output_surface.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/surfaces/direct_output_surface.cc
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/surfaces/direct_output_surface_ozone.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/surfaces/direct_output_surface_ozone.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_browser_compositor_output_surface.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_browser_compositor_output_surface.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/gpu_surfaceless_browser_compositor_output_surface.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/offscreen_browser_compositor_output_surface.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/offscreen_browser_compositor_output_surface.cc
|
View
|
|
4 chunks |
+11 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/reflector_impl_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_browser_compositor_output_surface.h
|
View
|
|
1 chunk |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/compositor/software_browser_compositor_output_surface.cc
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/compositor_impl_android.cc
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/context_provider_command_buffer.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/client/context_provider_command_buffer.cc
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/android/synchronous_compositor_output_surface.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/android/synchronous_compositor_output_surface.cc
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/compositor_output_surface.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/renderer/gpu/compositor_output_surface.cc
|
View
|
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
content/test/mailbox_output_surface.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/test/mailbox_output_surface.cc
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/test/in_process_context_factory.cc
|
View
|
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/compositor/test/in_process_context_provider.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/compositor/test/in_process_context_provider.cc
|
View
|
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 56 (29 generated)
|