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

Issue 2106103005: Revert of Pass initial size and GPU preference via context attributes (Closed)

Created:
4 years, 5 months ago by Pete Williamson
Modified:
4 years, 5 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, posciak+watch_chromium.org, sievers+watch_chromium.org, nyquist+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, jam, jbauman+watch_chromium.org, nona+watch_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, lethalantidote+watch-blimp_chromium.org, kalyank, android-webview-reviews_chromium.org, dtrainor+watch-blimp_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, cc-bugs_chromium.org, khushalsagar+watch-blimp_chromium.org, mlamouri+watch-test-runner_chromium.org, rjkroege, anandc+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, Ian Vollick, shuchen+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Pass initial size and GPU preference via context attributes (patchset #4 id:60001 of https://codereview.chromium.org/2107783003/ ) Reason for revert: Sheriff reverting under suspicion of causing a Win8 build break. It seems to be in gles2, and none of the other changelists changed gles2 Build break logs here: https://build.chromium.org/p/chromium.win/builders/Win8%20GYP%20%28dbg%29/builds/167 Relevant parts of logs: FAILED: gles2_utils.dll gles2_utils.dll.lib gles2_utils.dll.pdb E:\b\depot_tools\python276_bin\python.exe gyp-win-tool link-with-manifests environment.x86 True gles2_utils.dll "E:\b\depot_tools\python276_bin\python.exe gyp-win-tool link-wrapper environment.x86 False link.exe /nologo /IMPLIB:gles2_utils.dll.lib /DLL /OUT:gles2_utils.dll @gles2_utils.dll.rsp" 2 mt.exe rc.exe "obj\gpu\command_buffer\gles2_utils.gles2_utils.dll.intermediate.manifest" obj\gpu\command_buffer\gles2_utils.gles2_utils.dll.generated.manifest gles2_utils.gles2_cmd_utils.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall gfx::Size::Size(void)" (__imp_??0Size@gfx@@QAE@XZ) referenced in function "public: __thiscall gpu::gles2::ContextCreationAttribHelper::ContextCreationAttribHelper(void)" (??0ContextCreationAttribHelper@gles2@gpu@@QAE@XZ) gles2_utils.dll : fatal error LNK1120: 1 unresolved externals Original issue's description: > Pass initial offscreen size and GPU preference via context attributes > > This makes client code simpler, because all those things are passed through the same places. > > This CL also cleans up a few things: > 1- make (0, 0) a valid size for offscreen contexts more generally. It is already the case for GPU process contexts (CommandBufferProxyImpl), make it valid for the other types (GLInProcessContext, tests) by handling the logic it in GLES2DecoderImpl. This will also allow us to later remove allocating unneeded textures. > 2- many callers were setting an arbitrary dummy size, even for onscreen contexts (where it's not used), or when the default framebuffer isn't used (most contexts except Pepper and EGL). > 3- many callers were arbitrarily choosing the discrete GPU, when it doesn't matter (android, tests), whereas most of the code (compositor, helper contexts) should be choosing the integrated one, for consistency. In particular, pixel tests should be consistent with production. > > BUG=None > CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel > > Committed: https://crrev.com/11f4e35b660f4f5cbaed65a0a7f181b8426e877e > Cr-Commit-Position: refs/heads/master@{#402955} TBR=sievers@chromium.org,fsamuel@chromium.org,sky@chromium.org,wez@chromium.org,boliu@chromium.org,dcheng@chromium.org,danakj@chromium.org,piman@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=None Committed: https://crrev.com/fa5a4e6901537131f49acd3f6d4a2016d11bfd61 Cr-Commit-Position: refs/heads/master@{#402989}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -108 lines) Patch
M android_webview/browser/aw_render_thread_context_provider.cc View 1 chunk +2 lines, -1 line 0 comments Download
M blimp/client/feature/compositor/blimp_context_provider.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/test/test_in_process_context_provider.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M components/display_compositor/gl_helper_benchmark.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/display_compositor/gl_helper_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/display_compositor/yuv_readback_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M components/mus/gles2/command_buffer_driver.cc View 3 chunks +5 lines, -6 lines 0 comments Download
M components/mus/public/cpp/lib/gles2_context.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M components/mus/surfaces/surfaces_context_provider.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_ipc_browsertests.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.h View 2 chunks +2 lines, -0 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 3 chunks +6 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_video_encoder_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 4 chunks +10 lines, -8 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/test/layouttest_support.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.h View 2 chunks +3 lines, -1 line 0 comments Download
M gpu/command_buffer/client/gl_in_process_context.cc View 4 chunks +12 lines, -4 lines 0 comments Download
M gpu/command_buffer/common/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.h View 2 chunks +0 lines, -4 lines 0 comments Download
M gpu/command_buffer/common/gles2_cmd_utils.cc View 1 chunk +1 line, -2 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 3 chunks +6 lines, -13 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_mock.h View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.cc View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.h View 3 chunks +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/in_process_command_buffer.cc View 6 chunks +19 lines, -7 lines 0 comments Download
M gpu/command_buffer/tests/gl_manager.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M gpu/gles2_conform_support/egl/context.cc View 1 chunk +1 line, -2 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/ipc/client/gpu_in_process_context_tests.cc View 1 chunk +2 lines, -1 line 0 comments Download
M gpu/ipc/common/OWNERS View 1 chunk +10 lines, -7 lines 0 comments Download
M gpu/ipc/common/gpu_messages.h View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_param_traits_macros.h View 1 chunk +0 lines, -2 lines 0 comments Download
M gpu/ipc/service/gpu_channel_unittest.cc View 12 chunks +22 lines, -0 lines 0 comments Download
M gpu/ipc/service/gpu_command_buffer_stub.cc View 6 chunks +13 lines, -6 lines 0 comments Download
M ui/compositor/test/in_process_context_provider.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Pete Williamson
Created Revert of Pass initial size and GPU preference via context attributes
4 years, 5 months ago (2016-06-29 23:18:15 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2106103005/1
4 years, 5 months ago (2016-06-29 23:20:08 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 5 months ago (2016-06-29 23:34:05 UTC) #5
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-29 23:34:07 UTC) #6
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 23:36:01 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/fa5a4e6901537131f49acd3f6d4a2016d11bfd61
Cr-Commit-Position: refs/heads/master@{#402989}

Powered by Google App Engine
This is Rietveld 408576698