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

Issue 766663005: cc: zero/one-copy based on shared memory on IOS uses GL_TEXTURE_2D, not GL_TEXTURE_RECTANGLE_ARB. (Closed)

Created:
6 years ago by dshwang
Modified:
6 years ago
Reviewers:
reveman, piman
CC:
chromium-reviews, darin-cc_chromium.org, cc-bugs_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

cc: zero/one-copy based on shared memory on IOS uses GL_TEXTURE_2D, not GL_TEXTURE_RECTANGLE_ARB. GL_TEXTURE_RECTANGLE_ARB is needed for only IOSurface backed images like GL_TEXTURE_EXTERNAL_OES is needed for only surface texture backed images on Android. Replace switches::kUseImageExternal with switches::kUseImageTextureTarget in order to let cc know what is proper texture target backed image. Committed: https://crrev.com/72183b04964ecf5d8925dcf63335c4b5dc0e47ae Cr-Commit-Position: refs/heads/master@{#307214}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Introduce switches::kUseImageIOSurface #

Total comments: 1

Patch Set 3 : replace use_image_external+use_texture_rectangle with a texture target #

Total comments: 8

Patch Set 4 : Address nits #

Total comments: 2

Patch Set 5 : make "external" and "rectangle" a global constant #

Total comments: 1

Patch Set 6 : use GLES2Util::GetStringEnum instead of kImageTextureExternal #

Total comments: 2

Patch Set 7 : more polishing #

Patch Set 8 : fix mac build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -34 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_settings.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 2 chunks +19 lines, -3 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M content/public/common/content_switches.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -1 line 0 comments Download
M ui/gl/gpu_switching_manager.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -6 lines 0 comments Download
M ui/gl/gpu_switching_manager.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 29 (5 generated)
dshwang
It's kind of follow-up CL of your https://codereview.chromium.org/699073004 I'm not sure the purpose of kUseImageExternal ...
6 years ago (2014-11-28 08:52:02 UTC) #2
reveman
https://codereview.chromium.org/766663005/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/766663005/diff/1/cc/trees/layer_tree_host_impl.cc#newcode2021 cc/trees/layer_tree_host_impl.cc:2021: if (settings_.use_image_external) { use_image_external means that we should be ...
6 years ago (2014-12-01 17:03:14 UTC) #3
reveman
On 2014/11/28 08:52:02, dshwang wrote: > It's kind of follow-up CL of your https://codereview.chromium.org/699073004 > ...
6 years ago (2014-12-01 17:12:13 UTC) #4
dshwang
On 2014/12/01 17:12:13, reveman wrote: > On 2014/11/28 08:52:02, dshwang wrote: > > It's kind ...
6 years ago (2014-12-01 17:58:56 UTC) #5
reveman
On 2014/12/01 17:58:56, dshwang wrote: > On 2014/12/01 17:12:13, reveman wrote: > > On 2014/11/28 ...
6 years ago (2014-12-01 18:20:05 UTC) #6
dshwang
On 2014/12/01 18:20:05, reveman wrote: > Using TEXTURE_2D instead of TEXTURE_RECTANGLE on mac with shared ...
6 years ago (2014-12-02 20:15:42 UTC) #7
reveman
https://codereview.chromium.org/766663005/diff/20001/cc/trees/layer_tree_settings.h File cc/trees/layer_tree_settings.h (right): https://codereview.chromium.org/766663005/diff/20001/cc/trees/layer_tree_settings.h#newcode77 cc/trees/layer_tree_settings.h:77: bool use_image_io_surface; I can see that this might have ...
6 years ago (2014-12-03 02:19:42 UTC) #8
dshwang
On 2014/12/03 02:19:42, reveman wrote: > https://codereview.chromium.org/766663005/diff/20001/cc/trees/layer_tree_settings.h > File cc/trees/layer_tree_settings.h (right): > > https://codereview.chromium.org/766663005/diff/20001/cc/trees/layer_tree_settings.h#newcode77 > ...
6 years ago (2014-12-03 10:56:44 UTC) #9
reveman
https://codereview.chromium.org/766663005/diff/60001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/766663005/diff/60001/cc/trees/layer_tree_host_impl.cc#newcode2021 cc/trees/layer_tree_host_impl.cc:2021: if (image_target == GL_TEXTURE_RECTANGLE_ARB) { Please remove if/else statements ...
6 years ago (2014-12-03 15:57:19 UTC) #11
dshwang
On 2014/12/03 15:57:19, reveman wrote: Thank you for review! > https://codereview.chromium.org/766663005/diff/60001/cc/trees/layer_tree_host_impl.cc > File cc/trees/layer_tree_host_impl.cc (right): ...
6 years ago (2014-12-03 18:37:31 UTC) #12
reveman
lgtm +piman for content/
6 years ago (2014-12-03 19:22:37 UTC) #14
dshwang
On 2014/12/03 19:22:37, reveman wrote: > lgtm > > +piman for content/ Thank you for ...
6 years ago (2014-12-03 19:57:21 UTC) #15
piman
https://codereview.chromium.org/766663005/diff/80001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/766663005/diff/80001/content/browser/renderer_host/render_process_host_impl.cc#newcode1045 content/browser/renderer_host/render_process_host_impl.cc:1045: "external"); nit: can you make "external" and "rectangle" a ...
6 years ago (2014-12-03 21:16:50 UTC) #16
dshwang
Thank you for review. I address nits https://codereview.chromium.org/766663005/diff/80001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/766663005/diff/80001/content/browser/renderer_host/render_process_host_impl.cc#newcode1045 content/browser/renderer_host/render_process_host_impl.cc:1045: "external"); On ...
6 years ago (2014-12-04 09:21:14 UTC) #17
reveman
https://codereview.chromium.org/766663005/diff/100001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/766663005/diff/100001/content/browser/renderer_host/render_process_host_impl.cc#newcode1045 content/browser/renderer_host/render_process_host_impl.cc:1045: switches::kImageTextureExternal); can we use GLES2Util::GetStringEnum(GL_TEXTURE_EXTERNAL_OES) here instead of adding ...
6 years ago (2014-12-04 17:03:25 UTC) #18
dshwang
On 2014/12/04 17:03:25, reveman wrote: > https://codereview.chromium.org/766663005/diff/100001/content/browser/renderer_host/render_process_host_impl.cc > File content/browser/renderer_host/render_process_host_impl.cc (right): > > https://codereview.chromium.org/766663005/diff/100001/content/browser/renderer_host/render_process_host_impl.cc#newcode1045 > ...
6 years ago (2014-12-04 18:42:11 UTC) #19
reveman
lgtm still https://codereview.chromium.org/766663005/diff/120001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/766663005/diff/120001/content/renderer/render_thread_impl.cc#newcode536 content/renderer/render_thread_impl.cc:536: } Current code is fine but you ...
6 years ago (2014-12-04 20:10:38 UTC) #20
dshwang
https://codereview.chromium.org/766663005/diff/120001/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/766663005/diff/120001/content/renderer/render_thread_impl.cc#newcode536 content/renderer/render_thread_impl.cc:536: } On 2014/12/04 20:10:38, reveman wrote: > Current code ...
6 years ago (2014-12-04 20:55:59 UTC) #21
dshwang
code might settle down. @piman, could you review again?
6 years ago (2014-12-05 12:53:54 UTC) #22
piman
LGTM after compile errors fixed.
6 years ago (2014-12-05 20:55:31 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/766663005/180001
6 years ago (2014-12-08 09:57:59 UTC) #26
dshwang
On 2014/12/05 20:55:31, piman (Very slow to review) wrote: > LGTM after compile errors fixed. ...
6 years ago (2014-12-08 10:05:04 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:180001)
6 years ago (2014-12-08 10:42:03 UTC) #28
commit-bot: I haz the power
6 years ago (2014-12-08 10:43:51 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/72183b04964ecf5d8925dcf63335c4b5dc0e47ae
Cr-Commit-Position: refs/heads/master@{#307214}

Powered by Google App Engine
This is Rietveld 408576698