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

Issue 105553003: Use GLES2Interface in GLRenderer (Closed)

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

Description

Use GLES2Interface in GLRenderer This ports GLRenderer to (almost) exclusively use GLES2Interface as the context type instead of WebGraphicsContext3D. The remaining users within gl_renderer.cc are being addressed in parallel patches. Many callers outside of gl_renderer.cc still use the WebGraphicsContext3D type, so GLRenderer still exposes a pointer of that type. They'll be migrated piece by piece. Since this patch changes the line length of many lines due to changing the context pointer type from "context_" to "gl_" and changing the length of some of the context functions, I've clang-format'd the whole file. BUG=181120 R=danakj@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240041

Patch Set 1 #

Total comments: 3

Patch Set 2 : fix extra line in t_w_g_c_3d #

Patch Set 3 : applies to ToT #

Total comments: 1

Patch Set 4 : #

Patch Set 5 : remove unnecessary const_cast #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+665 lines, -512 lines) Patch
M cc/output/gl_renderer.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 94 chunks +455 lines, -511 lines 0 comments Download
M cc/test/test_gles2_interface.h View 2 chunks +56 lines, -0 lines 0 comments Download
M cc/test/test_gles2_interface.cc View 1 2 3 4 3 chunks +153 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jamesr
This patch is on top of https://codereview.chromium.org/93433004/. It'll probably be the most disruptive patch in ...
7 years ago (2013-12-05 23:58:35 UTC) #1
jamesr
https://codereview.chromium.org/105553003/diff/1/cc/test/test_gles2_interface.cc File cc/test/test_gles2_interface.cc (right): https://codereview.chromium.org/105553003/diff/1/cc/test/test_gles2_interface.cc#newcode76 cc/test/test_gles2_interface.cc:76: void TestGLES2Interface::BindTexture(GLenum target, GLuint texture) { fyi: i've expanded ...
7 years ago (2013-12-05 23:59:40 UTC) #2
piman
https://codereview.chromium.org/105553003/diff/1/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (left): https://codereview.chromium.org/105553003/diff/1/cc/output/gl_renderer.cc#oldcode2290 cc/output/gl_renderer.cc:2290: GLC(context_, context_->flush()); This is where the FreeEverything happens inside ...
7 years ago (2013-12-06 00:49:43 UTC) #3
jamesr
On 2013/12/06 00:49:43, piman wrote: > https://codereview.chromium.org/105553003/diff/1/cc/output/gl_renderer.cc > File cc/output/gl_renderer.cc (left): > > https://codereview.chromium.org/105553003/diff/1/cc/output/gl_renderer.cc#oldcode2290 > ...
7 years ago (2013-12-06 01:35:18 UTC) #4
jamesr
OK, this patch applies ToT now and https://src.chromium.org/viewvc/chrome?revision=239390&view=revision took care of the visibility side effects. ...
7 years ago (2013-12-09 01:25:57 UTC) #5
danakj
I think there was some chat with piman about that reinterpretconstcastholycrap. So LGTM but piman@ ...
7 years ago (2013-12-09 19:10:21 UTC) #6
jamesr
On 2013/12/09 19:10:21, danakj wrote: > https://codereview.chromium.org/105553003/diff/40001/cc/test/test_gles2_interface.cc#newcode134 > cc/test/test_gles2_interface.cc:134: > reinterpret_cast<intptr_t>(const_cast<void*>(indices))); > omg It's definitely ...
7 years ago (2013-12-09 19:57:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jamesr@chromium.org/105553003/60001
7 years ago (2013-12-09 20:13:15 UTC) #8
piman
On Mon, Dec 9, 2013 at 11:57 AM, <jamesr@chromium.org> wrote: > On 2013/12/09 19:10:21, danakj ...
7 years ago (2013-12-10 00:23:20 UTC) #9
jamesr
On 2013/12/10 00:23:20, piman wrote: > I think you shouldn't need the const_cast part. True, ...
7 years ago (2013-12-10 00:26:53 UTC) #10
jamesr
7 years ago (2013-12-11 06:52:59 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 manually as r240041 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698