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

Issue 93433004: Use GLES2Interface for shaders and programs (Closed)

Created:
7 years ago by jamesr
Modified:
7 years ago
Reviewers:
danakj, piman
CC:
chromium-reviews, cc-bugs_chromium.org, piman, enne (OOO)
Visibility:
Public.

Description

Use GLES2Interface for shaders and programs This uses the gpu::gles2::GLES2Interface type in the gl renderer's shader and program code instead of WebGraphicsContext3D. For production code, the GLES2Interface is a direct interface to the real command buffer in use. For cc_unittests, the GLES2Interface is a stub that wraps TestWebGraphicsContext3D so we can continue to use the same stubs/mocks for now. Once we port all of the production code over to using GLES2Interface we should port the test context classes over to the new base interface. BUG=181120 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=239405

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : fix android_aosp warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -170 lines) Patch
M cc/DEPS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 3 chunks +4 lines, -0 lines 0 comments Download
M cc/output/context_provider.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -1 line 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 11 chunks +36 lines, -34 lines 0 comments Download
M cc/output/program_binding.h View 4 chunks +15 lines, -11 lines 0 comments Download
M cc/output/program_binding.cc View 1 2 3 4 5 6 7 8 9 4 chunks +38 lines, -46 lines 0 comments Download
M cc/output/shader.h View 29 chunks +34 lines, -30 lines 0 comments Download
M cc/output/shader.cc View 33 chunks +34 lines, -34 lines 0 comments Download
M cc/output/shader_unittest.cc View 1 3 chunks +15 lines, -12 lines 0 comments Download
M cc/test/test_context_provider.h View 2 chunks +2 lines, -1 line 0 comments Download
M cc/test/test_context_provider.cc View 1 2 3 chunks +3 lines, -1 line 0 comments Download
A cc/test/test_gles2_interface.h View 1 3 4 5 6 7 1 chunk +36 lines, -0 lines 0 comments Download
A cc/test/test_gles2_interface.cc View 1 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
jamesr
Here's an example of wrapping TestWebGraphicsContext3D in a GLES2Interface. I wrapped these functions by hand ...
7 years ago (2013-12-03 02:25:11 UTC) #1
jamesr
This patch is on top of https://codereview.chromium.org/54463007/
7 years ago (2013-12-03 02:25:21 UTC) #2
danakj
LGTM https://codereview.chromium.org/93433004/diff/1/cc/output/program_binding.cc File cc/output/program_binding.cc (right): https://codereview.chromium.org/93433004/diff/1/cc/output/program_binding.cc#newcode85 cc/output/program_binding.cc:85: if (!shader) If we're going to DCHECK in ...
7 years ago (2013-12-03 19:24:49 UTC) #3
jamesr
PTAL piman - could you approve the +gpu/command_buffer/client/gles2_interface{,_stub}.h additions to cc/DEPS? https://codereview.chromium.org/93433004/diff/1/cc/output/program_binding.cc File cc/output/program_binding.cc (right): ...
7 years ago (2013-12-04 01:50:21 UTC) #4
piman
lgtm
7 years ago (2013-12-04 02:01:43 UTC) #5
danakj
https://codereview.chromium.org/93433004/diff/1/cc/output/program_binding.cc File cc/output/program_binding.cc (right): https://codereview.chromium.org/93433004/diff/1/cc/output/program_binding.cc#newcode85 cc/output/program_binding.cc:85: if (!shader) On 2013/12/04 01:50:21, jamesr wrote: > On ...
7 years ago (2013-12-04 16:39:43 UTC) #6
jamesr
Sorry, I remembered more of the history here and changed the DCHECK()s in program_binding back ...
7 years ago (2013-12-05 23:30:03 UTC) #7
danakj
On 2013/12/05 23:30:03, jamesr wrote: > Sorry, I remembered more of the history here and ...
7 years ago (2013-12-05 23:39:06 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/93433004/60001
7 years ago (2013-12-06 00:04:19 UTC) #9
commit-bot: I haz the power
Failed to apply patch for cc/test/test_gles2_interface.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years ago (2013-12-06 00:04:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/93433004/80001
7 years ago (2013-12-06 02:56:58 UTC) #11
commit-bot: I haz the power
Failed to apply patch for cc/test/test_gles2_interface.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years ago (2013-12-06 02:57:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/93433004/90001
7 years ago (2013-12-06 20:28:41 UTC) #13
commit-bot: I haz the power
Failed to apply patch for cc/test/test_gles2_interface.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years ago (2013-12-06 20:28:46 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/93433004/110001
7 years ago (2013-12-07 01:07:03 UTC) #15
commit-bot: I haz the power
Failed to apply patch for cc/test/test_gles2_interface.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years ago (2013-12-07 01:07:08 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/93433004/150001
7 years ago (2013-12-07 02:15:14 UTC) #17
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=32969
7 years ago (2013-12-07 04:02:25 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/93433004/170001
7 years ago (2013-12-08 01:12:55 UTC) #19
commit-bot: I haz the power
7 years ago (2013-12-08 22:14:13 UTC) #20
Message was sent while issue was closed.
Change committed as 239405

Powered by Google App Engine
This is Rietveld 408576698