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

Issue 319043005: Support using OpenGL ES context on desktop (Closed)

Created:
6 years, 6 months ago by Kimmo Kinnunen
Modified:
6 years, 3 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Support using OpenGL ES context on desktop Support using OpenGL ES context on desktop for unix and Android platforms. This is mainly useful in development. Add --gpuAPI flag to gm, dm, bench, bench_pictures and render_pictures. The possible parameters for the flag are "gl" and "gles". Committed: https://skia.googlesource.com/skia/+/80549fcdd50269d7e069d6db02b395fca128056c

Patch Set 1 #

Patch Set 2 : win #

Patch Set 3 : #

Total comments: 24

Patch Set 4 : address review comments #

Patch Set 5 : rebase #

Patch Set 6 : fix the crash, tested on xoom #

Total comments: 1

Patch Set 7 : add docs #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+644 lines, -366 lines) Patch
M bench/benchmain.cpp View 1 2 3 4 5 6 5 chunks +25 lines, -3 lines 0 comments Download
M dm/DM.cpp View 1 2 3 4 5 6 8 chunks +42 lines, -20 lines 0 comments Download
M dm/DMBenchTask.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M dm/DMBenchTask.cpp View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M dm/DMGpuGMTask.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M dm/DMGpuGMTask.cpp View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M dm/DMGpuSupport.h View 1 2 3 3 chunks +9 lines, -1 line 0 comments Download
M experimental/PdfViewer/pdf_viewer_main.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M gm/gmmain.cpp View 1 2 3 4 13 chunks +43 lines, -9 lines 0 comments Download
M include/gpu/GrContextFactory.h View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M include/gpu/gl/SkANGLEGLContext.h View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M include/gpu/gl/SkDebugGLContext.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/gl/SkGLContextHelper.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M include/gpu/gl/SkMesaGLContext.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/gl/SkNativeGLContext.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M include/gpu/gl/SkNullGLContext.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M include/utils/SkWGL.h View 1 2 1 chunk +11 lines, -1 line 0 comments Download
A src/gpu/gl/GrGLAssembleGLESInterface.h View 1 2 3 4 5 6 1 chunk +256 lines, -0 lines 0 comments Download
M src/gpu/gl/SkGLContextHelper.cpp View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M src/gpu/gl/SkNullGLContext.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp View 1 2 3 4 5 6 1 chunk +8 lines, -237 lines 0 comments Download
M src/gpu/gl/android/SkNativeGLContext_android.cpp View 1 2 3 2 chunks +11 lines, -2 lines 1 comment Download
M src/gpu/gl/angle/SkANGLEGLContext.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/gl/debug/SkDebugGLContext.cpp View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M src/gpu/gl/iOS/SkNativeGLContext_iOS.mm View 1 2 3 2 chunks +6 lines, -2 lines 0 comments Download
M src/gpu/gl/mac/SkNativeGLContext_mac.cpp View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M src/gpu/gl/mesa/SkMesaGLContext.cpp View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M src/gpu/gl/nacl/SkNativeGLContext_nacl.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/unix/GrGLCreateNativeInterface_unix.cpp View 1 2 3 4 5 6 2 chunks +20 lines, -1 line 0 comments Download
M src/gpu/gl/unix/SkNativeGLContext_unix.cpp View 1 2 3 2 chunks +47 lines, -39 lines 0 comments Download
M src/gpu/gl/win/GrGLCreateNativeInterface_win.cpp View 1 2 3 4 5 6 2 chunks +21 lines, -1 line 0 comments Download
M src/gpu/gl/win/SkNativeGLContext_win.cpp View 1 2 3 2 chunks +7 lines, -3 lines 0 comments Download
M src/utils/win/SkWGL_win.cpp View 1 2 chunks +37 lines, -20 lines 0 comments Download
M src/views/win/SkOSWindow_win.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M tools/PictureRenderer.h View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download
M tools/PictureRenderingFlags.cpp View 1 2 3 4 5 6 4 chunks +31 lines, -1 line 0 comments Download

Messages

Total messages: 33 (2 generated)
Kimmo Kinnunen
Do you think this is worth the complexity? Initially I did it to develop NVPR, ...
6 years, 6 months ago (2014-06-09 05:29:31 UTC) #1
bsalomon
I definitely think it's worth it. Thank you for doing the interface assembler for ES. ...
6 years, 6 months ago (2014-06-09 13:53:47 UTC) #2
mtklein
https://codereview.chromium.org/319043005/diff/30001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/319043005/diff/30001/dm/DM.cpp#newcode44 dm/DM.cpp:44: DEFINE_string(forceGpuApi, "", "Force use of specific gpu API. Using ...
6 years, 6 months ago (2014-06-09 14:10:46 UTC) #3
bsalomon
https://codereview.chromium.org/319043005/diff/30001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/319043005/diff/30001/dm/DM.cpp#newcode44 dm/DM.cpp:44: DEFINE_string(forceGpuApi, "", "Force use of specific gpu API. Using ...
6 years, 6 months ago (2014-06-09 14:15:11 UTC) #4
mtklein
https://codereview.chromium.org/319043005/diff/30001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/319043005/diff/30001/dm/DM.cpp#newcode44 dm/DM.cpp:44: DEFINE_string(forceGpuApi, "", "Force use of specific gpu API. Using ...
6 years, 6 months ago (2014-06-09 14:20:21 UTC) #5
bsalomon
https://codereview.chromium.org/319043005/diff/30001/dm/DM.cpp File dm/DM.cpp (right): https://codereview.chromium.org/319043005/diff/30001/dm/DM.cpp#newcode44 dm/DM.cpp:44: DEFINE_string(forceGpuApi, "", "Force use of specific gpu API. Using ...
6 years, 6 months ago (2014-06-09 14:29:52 UTC) #6
robertphillips
https://codereview.chromium.org/319043005/diff/30001/src/gpu/gl/unix/SkNativeGLContext_unix.cpp File src/gpu/gl/unix/SkNativeGLContext_unix.cpp (right): https://codereview.chromium.org/319043005/diff/30001/src/gpu/gl/unix/SkNativeGLContext_unix.cpp#newcode216 src/gpu/gl/unix/SkNativeGLContext_unix.cpp:216: static const int context_attribs_gl_fallback[] = { Shouldn't this value ...
6 years, 6 months ago (2014-06-09 14:31:05 UTC) #7
Kimmo Kinnunen
How about this? https://chromiumcodereview.appspot.com/319043005/diff/30001/dm/DM.cpp File dm/DM.cpp (right): https://chromiumcodereview.appspot.com/319043005/diff/30001/dm/DM.cpp#newcode44 dm/DM.cpp:44: DEFINE_string(forceGpuApi, "", "Force use of specific ...
6 years, 6 months ago (2014-06-16 12:36:40 UTC) #8
bsalomon
lgtm if Mike's ok with the DM changes. If so, I'll launch some try bots ...
6 years, 6 months ago (2014-06-16 14:25:10 UTC) #9
mtklein
On 2014/06/16 14:25:10, bsalomon wrote: > lgtm if Mike's ok with the DM changes. If ...
6 years, 6 months ago (2014-06-16 15:09:43 UTC) #10
Kimmo Kinnunen
On 2014/06/16 14:25:10, bsalomon wrote: > lgtm if Mike's ok with the DM changes. If ...
6 years, 6 months ago (2014-06-19 11:36:31 UTC) #11
bsalomon
On 2014/06/19 11:36:31, kkinnunen wrote: > On 2014/06/16 14:25:10, bsalomon wrote: > > lgtm if ...
6 years, 6 months ago (2014-06-19 13:08:32 UTC) #12
bsalomon
The CQ bit was checked by bsalomon@google.com
6 years, 6 months ago (2014-06-19 13:08:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/kkinnunen@nvidia.com/319043005/50001
6 years, 6 months ago (2014-06-19 13:09:38 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-19 13:09:52 UTC) #15
commit-bot: I haz the power
Failed to apply patch for dm/DM.cpp: While running git apply --index -p1; error: patch failed: ...
6 years, 6 months ago (2014-06-19 13:09:55 UTC) #16
Kimmo Kinnunen
The CQ bit was checked by kkinnunen@nvidia.com
6 years, 6 months ago (2014-06-23 05:41:35 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/kkinnunen@nvidia.com/319043005/70001
6 years, 6 months ago (2014-06-23 05:41:42 UTC) #18
commit-bot: I haz the power
Change committed as 74fc727dc88ee24d89f88cb1709f963e9073aeb3
6 years, 6 months ago (2014-06-23 05:57:00 UTC) #19
rmistry
On 2014/06/23 05:57:00, I haz the power (commit-bot) wrote: > Change committed as 74fc727dc88ee24d89f88cb1709f963e9073aeb3 This ...
6 years, 6 months ago (2014-06-23 12:22:13 UTC) #20
rmistry
On 2014/06/23 12:22:13, rmistry wrote: > On 2014/06/23 05:57:00, I haz the power (commit-bot) wrote: ...
6 years, 6 months ago (2014-06-23 13:04:21 UTC) #21
rmistry
A revert of this CL has been created in https://codereview.chromium.org/351583002/ by rmistry@google.com. The reason for ...
6 years, 6 months ago (2014-06-23 13:08:30 UTC) #22
Kimmo Kinnunen
The crash fixed, PTAL, thanks.
6 years, 6 months ago (2014-06-24 06:29:07 UTC) #23
bsalomon
https://codereview.chromium.org/319043005/diff/90001/src/gpu/gl/GrGLAssembleGLESInterface.h File src/gpu/gl/GrGLAssembleGLESInterface.h (right): https://codereview.chromium.org/319043005/diff/90001/src/gpu/gl/GrGLAssembleGLESInterface.h#newcode10 src/gpu/gl/GrGLAssembleGLESInterface.h:10: const char* verStr = reinterpret_cast<const char*>(glGetString(GR_GL_VERSION)); Is this assuming ...
6 years, 6 months ago (2014-06-24 14:01:57 UTC) #24
Kimmo Kinnunen
On 2014/06/24 14:01:57, bsalomon wrote: > https://codereview.chromium.org/319043005/diff/90001/src/gpu/gl/GrGLAssembleGLESInterface.h > File src/gpu/gl/GrGLAssembleGLESInterface.h (right): > > https://codereview.chromium.org/319043005/diff/90001/src/gpu/gl/GrGLAssembleGLESInterface.h#newcode10 > ...
6 years, 5 months ago (2014-06-30 07:44:48 UTC) #25
bsalomon
lgtm
6 years, 5 months ago (2014-06-30 13:21:00 UTC) #26
commit-bot: I haz the power
Change committed as 80549fcdd50269d7e069d6db02b395fca128056c
6 years, 5 months ago (2014-06-30 13:36:36 UTC) #27
mtklein
On 2014/06/30 13:36:36, I haz the power (commit-bot) wrote: > Change committed as 80549fcdd50269d7e069d6db02b395fca128056c You ...
6 years, 5 months ago (2014-06-30 13:57:55 UTC) #28
bsalomon
On 2014/06/30 13:57:55, mtklein wrote: > On 2014/06/30 13:36:36, I haz the power (commit-bot) wrote: ...
6 years, 5 months ago (2014-06-30 13:59:20 UTC) #29
bsalomon
A revert of this CL has been created in https://codereview.chromium.org/341433007/ by bsalomon@google.com. The reason for ...
6 years, 5 months ago (2014-06-30 15:36:12 UTC) #30
tomhudson
6 years, 3 months ago (2014-09-10 14:46:52 UTC) #32
Message was sent while issue was closed.
https://codereview.chromium.org/319043005/diff/110001/src/gpu/gl/android/SkNa...
File src/gpu/gl/android/SkNativeGLContext_android.cpp (right):

https://codereview.chromium.org/319043005/diff/110001/src/gpu/gl/android/SkNa...
src/gpu/gl/android/SkNativeGLContext_android.cpp:95: for (size_t i = 0; NULL ==
interface && i < apiLimit; ++api) {
Note that this is a bug that happened to get past code review and not kill us on
most platforms, but surfaces on some platforms. Fix incoming.

Powered by Google App Engine
This is Rietveld 408576698