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

Issue 1674823002: Replace GrGLInterface's function pointers with std::functions (Closed)

Created:
4 years, 10 months ago by bsalomon
Modified:
4 years, 10 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Replace GrGLInterface's function pointers with std::functions. This is to facilitate binding to GLES2Interface in Chromium rather than the C interface. It requires capturing the GLES2Interface. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1674823002 Committed: https://skia.googlesource.com/skia/+/9f2dc27642e7e556f54f632bf6eff195d8cf52e1

Patch Set 1 #

Patch Set 2 : *T*Logic #

Patch Set 3 : fix include again #

Patch Set 4 : rebase #

Patch Set 5 : rebase & cleanup #

Total comments: 2

Patch Set 6 : rebase and address comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+320 lines, -337 lines) Patch
M include/gpu/gl/GrGLExtensions.h View 1 chunk +4 lines, -4 lines 0 comments Download
M include/gpu/gl/GrGLFunctions.h View 1 2 4 5 2 chunks +5 lines, -0 lines 2 comments Download
M include/gpu/gl/GrGLInterface.h View 4 5 3 chunks +302 lines, -324 lines 0 comments Download
M src/gpu/gl/GrGLCaps.cpp View 4 5 1 chunk +5 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLExtensions.cpp View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674823002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674823002/80001
4 years, 10 months ago (2016-02-06 22:32:01 UTC) #3
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-06 22:57:22 UTC) #6
bsalomon
Companion CL is https://codereview.chromium.org/1671283002/
4 years, 10 months ago (2016-02-06 23:09:51 UTC) #8
robertphillips
lgtm https://codereview.chromium.org/1674823002/diff/80001/include/private/SkTLogic.h File include/private/SkTLogic.h (right): https://codereview.chromium.org/1674823002/diff/80001/include/private/SkTLogic.h#newcode33 include/private/SkTLogic.h:33: template <typename T> using remove_cv_t = typename std::remove_cv<T>::type; ...
4 years, 10 months ago (2016-02-08 13:13:16 UTC) #9
bsalomon
https://codereview.chromium.org/1674823002/diff/80001/include/private/SkTLogic.h File include/private/SkTLogic.h (right): https://codereview.chromium.org/1674823002/diff/80001/include/private/SkTLogic.h#newcode33 include/private/SkTLogic.h:33: template <typename T> using remove_cv_t = typename std::remove_cv<T>::type; On ...
4 years, 10 months ago (2016-02-08 14:52:55 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1674823002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1674823002/100001
4 years, 10 months ago (2016-02-08 14:52:59 UTC) #14
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://skia.googlesource.com/skia/+/9f2dc27642e7e556f54f632bf6eff195d8cf52e1
4 years, 10 months ago (2016-02-08 15:22:21 UTC) #16
bungeman-skia
Is this causing the Windows roll failures? https://codereview.chromium.org/1674823002/diff/100001/include/gpu/gl/GrGLFunctions.h File include/gpu/gl/GrGLFunctions.h (right): https://codereview.chromium.org/1674823002/diff/100001/include/gpu/gl/GrGLFunctions.h#newcode14 include/gpu/gl/GrGLFunctions.h:14: #include "../private/SkTLogic.h" ...
4 years, 10 months ago (2016-02-08 20:22:52 UTC) #18
bsalomon
4 years, 10 months ago (2016-02-09 15:21:38 UTC) #19
Message was sent while issue was closed.
https://codereview.chromium.org/1674823002/diff/100001/include/gpu/gl/GrGLFun...
File include/gpu/gl/GrGLFunctions.h (right):

https://codereview.chromium.org/1674823002/diff/100001/include/gpu/gl/GrGLFun...
include/gpu/gl/GrGLFunctions.h:14: #include "../private/SkTLogic.h"
On 2016/02/08 20:22:52, bungeman1 wrote:
> I imagine this include was added in order to replace
> std::remove_pointer<GLPTR>::type with skstd::remove_pointer_t<GLPTR>. However
> that didn't seem to happen, so either this include should be removed or the
code
> below changed. As things stand, it would be better to just directly include
> <type_traits>.

Oops, I did that change locally and then never uploaded it. Will submit it as a
separate change.

Powered by Google App Engine
This is Rietveld 408576698