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

Issue 1652873002: Android: Use virtualized context only for those with compatible config (Closed)

Created:
4 years, 10 months ago by Jinsuk Kim
Modified:
4 years, 10 months ago
Reviewers:
no sievers
CC:
chromium-reviews, ozone-reviews_chromium.org, darin-cc_chromium.org, jam, kalyank, piman+watch_chromium.org, aelias_OOO_until_Jul13
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Use virtualized context only for those with compatible config This allows low-end devices to have 16-bit surface by default to save memory, using 32-bit surface only for fullscreen video. BUG=272429 CQ_INCLUDE_TRYBOTS=tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/556e80df92feedd754453f9c98afbe40cff60335 Cr-Commit-Position: refs/heads/master@{#377161}

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 2

Patch Set 3 : comment addressed #

Total comments: 8

Patch Set 4 : comment addressed #

Total comments: 6

Patch Set 5 : comments addressed #

Total comments: 6

Patch Set 6 : comments addressed #

Total comments: 6

Patch Set 7 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -98 lines) Patch
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 5 chunks +18 lines, -23 lines 0 comments Download
M content/common/gpu/image_transport_surface_mac.mm View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/stream_texture_android.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M gpu/command_buffer/service/gl_surface_mock.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gl_context_osmesa.cc View 1 2 3 4 5 6 1 chunk +12 lines, -2 lines 0 comments Download
M ui/gl/gl_surface.h View 1 2 3 4 5 4 chunks +7 lines, -10 lines 0 comments Download
M ui/gl/gl_surface.cc View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gl/gl_surface_android.cc View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M ui/gl/gl_surface_egl.h View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M ui/gl/gl_surface_egl.cc View 1 2 3 4 5 6 4 chunks +15 lines, -6 lines 0 comments Download
M ui/gl/gl_surface_mac.cc View 1 2 3 4 5 2 chunks +4 lines, -5 lines 0 comments Download
M ui/gl/gl_surface_osmesa.h View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M ui/gl/gl_surface_osmesa.cc View 1 2 3 4 5 3 chunks +5 lines, -12 lines 0 comments Download
M ui/gl/gl_surface_ozone.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M ui/gl/gl_surface_win.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M ui/gl/gl_surface_x11.cc View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
Jinsuk Kim
This CL associates the virtual context to a real context of a config compatible with ...
4 years, 10 months ago (2016-02-01 08:02:12 UTC) #2
Jinsuk Kim
All the builds are green now.
4 years, 10 months ago (2016-02-12 20:30:14 UTC) #4
no sievers
https://codereview.chromium.org/1652873002/diff/20001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1652873002/diff/20001/content/common/gpu/gpu_command_buffer_stub.cc#newcode564 content/common/gpu/gpu_command_buffer_stub.cc:564: if (use_virtualized_gl_context_ && share_group) { Is it simpler to ...
4 years, 10 months ago (2016-02-17 00:56:26 UTC) #5
Jinsuk Kim
https://codereview.chromium.org/1652873002/diff/20001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1652873002/diff/20001/content/common/gpu/gpu_command_buffer_stub.cc#newcode564 content/common/gpu/gpu_command_buffer_stub.cc:564: if (use_virtualized_gl_context_ && share_group) { On 2016/02/17 00:56:26, sievers ...
4 years, 10 months ago (2016-02-17 07:23:32 UTC) #6
no sievers
https://codereview.chromium.org/1652873002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1652873002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode166 content/common/gpu/gpu_command_buffer_stub.cc:166: bool use_virtualized_gl_context) { nit: this argument is unused now ...
4 years, 10 months ago (2016-02-17 23:38:01 UTC) #7
Jinsuk Kim
https://codereview.chromium.org/1652873002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1652873002/diff/40001/content/common/gpu/gpu_command_buffer_stub.cc#newcode166 content/common/gpu/gpu_command_buffer_stub.cc:166: bool use_virtualized_gl_context) { On 2016/02/17 23:38:01, sievers wrote: > ...
4 years, 10 months ago (2016-02-18 02:57:24 UTC) #10
no sievers
https://codereview.chromium.org/1652873002/diff/80001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1652873002/diff/80001/content/common/gpu/gpu_command_buffer_stub.cc#newcode581 content/common/gpu/gpu_command_buffer_stub.cc:581: if (!context->Initialize(surface_.get(), gpu_preference_)) { Unfortunately Initialize() is not reliable ...
4 years, 10 months ago (2016-02-18 20:19:45 UTC) #11
Jinsuk Kim
Comments addressed. Please take another look. https://codereview.chromium.org/1652873002/diff/80001/content/common/gpu/gpu_command_buffer_stub.cc File content/common/gpu/gpu_command_buffer_stub.cc (right): https://codereview.chromium.org/1652873002/diff/80001/content/common/gpu/gpu_command_buffer_stub.cc#newcode581 content/common/gpu/gpu_command_buffer_stub.cc:581: if (!context->Initialize(surface_.get(), gpu_preference_)) ...
4 years, 10 months ago (2016-02-19 01:04:40 UTC) #12
no sievers
https://codereview.chromium.org/1652873002/diff/100001/ui/gl/gl_surface.h File ui/gl/gl_surface.h (right): https://codereview.chromium.org/1652873002/diff/100001/ui/gl/gl_surface.h#newcode232 ui/gl/gl_surface.h:232: GLSurface::Format format_; Can you initialize this? Actually, do we ...
4 years, 10 months ago (2016-02-19 20:25:18 UTC) #13
Jinsuk Kim
Many things to revert! https://codereview.chromium.org/1652873002/diff/100001/ui/gl/gl_surface.h File ui/gl/gl_surface.h (right): https://codereview.chromium.org/1652873002/diff/100001/ui/gl/gl_surface.h#newcode232 ui/gl/gl_surface.h:232: GLSurface::Format format_; On 2016/02/19 20:25:18, ...
4 years, 10 months ago (2016-02-20 13:56:57 UTC) #14
no sievers
lgtm w/nits https://codereview.chromium.org/1652873002/diff/120001/ui/gl/gl_context_osmesa.cc File ui/gl/gl_context_osmesa.cc (right): https://codereview.chromium.org/1652873002/diff/120001/ui/gl/gl_context_osmesa.cc#newcode37 ui/gl/gl_context_osmesa.cc:37: default: nit: NOTREACHED() (and remove line 40). ...
4 years, 10 months ago (2016-02-22 22:50:04 UTC) #15
Jinsuk Kim
Thanks a lot for reviewing! https://codereview.chromium.org/1652873002/diff/120001/ui/gl/gl_context_osmesa.cc File ui/gl/gl_context_osmesa.cc (right): https://codereview.chromium.org/1652873002/diff/120001/ui/gl/gl_context_osmesa.cc#newcode37 ui/gl/gl_context_osmesa.cc:37: default: On 2016/02/22 22:50:03, ...
4 years, 10 months ago (2016-02-23 01:27:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1652873002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1652873002/140001
4 years, 10 months ago (2016-02-24 00:11:25 UTC) #20
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 10 months ago (2016-02-24 01:01:40 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2016-02-24 01:02:48 UTC) #24
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/556e80df92feedd754453f9c98afbe40cff60335
Cr-Commit-Position: refs/heads/master@{#377161}

Powered by Google App Engine
This is Rietveld 408576698