Commit 17173492 authored by Mike Klein's avatar Mike Klein Committed by Commit Bot

Return GrGLFunction from gles_bind().

GrGLFunction is a std::function today, but we'd like to slim that down.
This will let us change its underlying type seamlessly.

Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I9f9c3d4b56e6d6fb6db82c8f47ddf74fdca6476d
Reviewed-on: https://chromium-review.googlesource.com/580129Reviewed-by: default avatarBrian Salomon <bsalomon@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: Mike Klein <mtklein@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488394}
parent b8d17580
...@@ -11,7 +11,7 @@ using gpu::gles2::GLES2Interface; ...@@ -11,7 +11,7 @@ using gpu::gles2::GLES2Interface;
namespace { namespace {
template <typename R, typename... Args> template <typename R, typename... Args>
std::function<R(Args...)> gles_bind(R (GLES2Interface::*func)(Args...), GrGLFunction<R (*)(Args...)> gles_bind(R (GLES2Interface::*func)(Args...),
GLES2Interface* gles2Interface) { GLES2Interface* gles2Interface) {
return [func, gles2Interface](Args... args) { return [func, gles2Interface](Args... args) {
return (gles2Interface->*func)(args...); return (gles2Interface->*func)(args...);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment