Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(872)

Issue 2089753003: cc: Use the correct internal format for glCopyTexImage2D calls. (Closed)

Created:
4 years, 6 months ago by danakj
Modified:
4 years, 6 months ago
CC:
chromium-reviews, rjkroege, mlamouri+watch-content_chromium.org, Ian Vollick, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org, enne (OOO), jbauman, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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}

Patch Set 1 : copytextureformat: . #

Patch Set 2 : copytextureformat: pixeltests #

Patch Set 3 : copytextureformat: bufferqueue #

Total comments: 1

Patch Set 4 : copytextureformat: content_unittests #

Patch Set 5 : copytextureformat: blimp #

Patch Set 6 : copytextureformat: without-the-broken-thing-for-testing-lol #

Total comments: 2

Patch Set 7 : copytextureformat: windowsbaseline #

Patch Set 8 : copytextureformat: typo #

Total comments: 3

Patch Set 9 : copytextureformat: comments #

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:

Messages

Total messages: 56 (29 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/1
4 years, 6 months ago (2016-06-21 21:54:28 UTC) #3
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/40001
4 years, 6 months ago (2016-06-21 22:53:18 UTC) #6
danakj
4 years, 6 months ago (2016-06-21 23:09:49 UTC) #8
danakj
+bo for webview +sky for mus
4 years, 6 months ago (2016-06-21 23:10:22 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/60001
4 years, 6 months ago (2016-06-21 23:10:48 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/87397) cast_shell_android on ...
4 years, 6 months ago (2016-06-21 23:21:05 UTC) #14
danakj
I changed cc pixel tests to fail without the change in GLRenderer, which required some ...
4 years, 6 months ago (2016-06-21 23:35:59 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/90001
4 years, 6 months ago (2016-06-21 23:36:31 UTC) #18
sky
LGTM https://codereview.chromium.org/2089753003/diff/90001/components/mus/public/cpp/lib/output_surface.cc File components/mus/public/cpp/lib/output_surface.cc (right): https://codereview.chromium.org/2089753003/diff/90001/components/mus/public/cpp/lib/output_surface.cc#newcode38 components/mus/public/cpp/lib/output_surface.cc:38: // This is a delegating output surface, no ...
4 years, 6 months ago (2016-06-21 23:40:35 UTC) #20
Fady Samuel
lgtm
4 years, 6 months ago (2016-06-21 23:42:17 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/179527) mac_chromium_compile_dbg_ng on ...
4 years, 6 months ago (2016-06-21 23:42:37 UTC) #23
boliu
a_w lgtm
4 years, 6 months ago (2016-06-21 23:57:24 UTC) #24
danakj
+nyquist for blimp/
4 years, 6 months ago (2016-06-22 00:14:44 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/150001
4 years, 6 months ago (2016-06-22 00:16:55 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/233247)
4 years, 6 months ago (2016-06-22 00:53:21 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/170001
4 years, 6 months ago (2016-06-22 01:01:02 UTC) #33
piman
lgtm https://codereview.chromium.org/2089753003/diff/170001/cc/output/gl_renderer.h File cc/output/gl_renderer.h (right): https://codereview.chromium.org/2089753003/diff/170001/cc/output/gl_renderer.h#newcode513 cc/output/gl_renderer.h:513: // This is valud when current_framebuffer_lock_ is not ...
4 years, 6 months ago (2016-06-22 01:15:03 UTC) #34
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/233271)
4 years, 6 months ago (2016-06-22 02:32:46 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/190001
4 years, 6 months ago (2016-06-22 20:54:50 UTC) #40
danakj
https://codereview.chromium.org/2089753003/diff/170001/cc/output/gl_renderer.h File cc/output/gl_renderer.h (right): https://codereview.chromium.org/2089753003/diff/170001/cc/output/gl_renderer.h#newcode513 cc/output/gl_renderer.h:513: // This is valud when current_framebuffer_lock_ is not null. ...
4 years, 6 months ago (2016-06-22 20:55:11 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/210001
4 years, 6 months ago (2016-06-22 20:57:16 UTC) #44
Wez
blimp/ LGTM w/ comment addressed. https://codereview.chromium.org/2089753003/diff/210001/blimp/client/feature/compositor/blimp_context_provider.h File blimp/client/feature/compositor/blimp_context_provider.h (right): https://codereview.chromium.org/2089753003/diff/210001/blimp/client/feature/compositor/blimp_context_provider.h#newcode46 blimp/client/feature/compositor/blimp_context_provider.h:46: uint32_t GetCopyTextureInternalFormat(); nit: Please ...
4 years, 6 months ago (2016-06-22 21:02:21 UTC) #47
danakj
https://codereview.chromium.org/2089753003/diff/210001/blimp/client/feature/compositor/blimp_context_provider.h File blimp/client/feature/compositor/blimp_context_provider.h (right): https://codereview.chromium.org/2089753003/diff/210001/blimp/client/feature/compositor/blimp_context_provider.h#newcode46 blimp/client/feature/compositor/blimp_context_provider.h:46: uint32_t GetCopyTextureInternalFormat(); On 2016/06/22 21:02:21, Wez wrote: > nit: ...
4 years, 6 months ago (2016-06-22 21:06:50 UTC) #48
Wez
https://codereview.chromium.org/2089753003/diff/210001/blimp/client/feature/compositor/blimp_context_provider.h File blimp/client/feature/compositor/blimp_context_provider.h (right): https://codereview.chromium.org/2089753003/diff/210001/blimp/client/feature/compositor/blimp_context_provider.h#newcode46 blimp/client/feature/compositor/blimp_context_provider.h:46: uint32_t GetCopyTextureInternalFormat(); On 2016/06/22 21:06:50, danakj wrote: > On ...
4 years, 6 months ago (2016-06-22 21:08:14 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2089753003/230001
4 years, 6 months ago (2016-06-22 21:08:27 UTC) #52
commit-bot: I haz the power
Committed patchset #9 (id:230001)
4 years, 6 months ago (2016-06-22 22:26:05 UTC) #54
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 22:28:41 UTC) #56
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/a85bd24aa12d06f088ec083a01ceaf4ef54ead67
Cr-Commit-Position: refs/heads/master@{#401438}

Powered by Google App Engine
This is Rietveld 408576698