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

Issue 1194783003: Implement SkGLContext swapBuffers with fence syncs (Closed)

Created:
5 years, 6 months ago by Chris Dalton
Modified:
5 years, 6 months ago
Reviewers:
joshualitt, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Implement SkGLContext swapBuffers with fence syncs Improves the GPU measuring accuracy of nanobench by using fence syncs. Fence syncs are very widely supported and available on almost every platform. NO_MERGE_BUILDS BUG=skia: Committed: https://skia.googlesource.com/skia/+/d416a5b10ff9e6d4f55a1f5b0419722132d68ff3

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments #

Patch Set 3 : #

Patch Set 4 : windows build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -90 lines) Patch
M bench/nanobench.h View 1 chunk +1 line, -1 line 0 comments Download
M bench/nanobench.cpp View 1 8 chunks +23 lines, -9 lines 0 comments Download
M bench/nanobenchAndroid.h View 1 chunk +1 line, -1 line 0 comments Download
M bench/nanobenchAndroid.cpp View 1 chunk +3 lines, -1 line 0 comments Download
M include/gpu/gl/GrGLInterface.h View 1 chunk +2 lines, -0 lines 0 comments Download
M include/gpu/gl/SkGLContext.h View 1 2 3 3 chunks +45 lines, -7 lines 0 comments Download
M include/gpu/gl/SkNullGLContext.h View 2 chunks +4 lines, -2 lines 0 comments Download
M include/gpu/gl/angle/SkANGLEGLContext.h View 2 chunks +4 lines, -2 lines 0 comments Download
A src/gpu/SkGpuFenceSync.h View 1 chunk +29 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLAssembleInterface.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/gpu/gl/SkGLContext.cpp View 1 2 1 chunk +134 lines, -2 lines 0 comments Download
M src/gpu/gl/SkNullGLContext.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/gpu/gl/angle/SkANGLEGLContext.cpp View 2 chunks +12 lines, -6 lines 0 comments Download
M src/gpu/gl/debug/SkDebugGLContext.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/gl/debug/SkDebugGLContext.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp View 4 chunks +79 lines, -9 lines 0 comments Download
M src/gpu/gl/glx/SkCreatePlatformGLContext_glx.cpp View 3 chunks +16 lines, -8 lines 0 comments Download
M src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm View 3 chunks +27 lines, -9 lines 0 comments Download
M src/gpu/gl/mac/SkCreatePlatformGLContext_mac.cpp View 2 chunks +27 lines, -9 lines 0 comments Download
M src/gpu/gl/mesa/SkMesaGLContext.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/gl/mesa/SkMesaGLContext.cpp View 3 chunks +12 lines, -6 lines 0 comments Download
M src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp View 5 chunks +16 lines, -8 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Chris Dalton
I was unable to get nanobench running on ios, but all other platforms that I ...
5 years, 6 months ago (2015-06-23 09:01:53 UTC) #2
bsalomon
I think if you set your GYP_DEFINES to include skia_os=ios and skia_arch_type=x86 and then run ...
5 years, 6 months ago (2015-06-23 14:09:20 UTC) #3
bsalomon
https://codereview.chromium.org/1194783003/diff/1/src/gpu/gl/SkGLContext.cpp File src/gpu/gl/SkGLContext.cpp (right): https://codereview.chromium.org/1194783003/diff/1/src/gpu/gl/SkGLContext.cpp#newcode46 src/gpu/gl/SkGLContext.cpp:46: SkASSERT(0 == fFrameFences[0]); Can we write this class in ...
5 years, 6 months ago (2015-06-23 14:53:21 UTC) #4
Chris Dalton
https://codereview.chromium.org/1194783003/diff/1/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1194783003/diff/1/bench/nanobench.cpp#newcode147 bench/nanobench.cpp:147: bool needsFrameTiming(int* frameLag) const override { On 2015/06/23 14:09:20, ...
5 years, 6 months ago (2015-06-23 19:34:11 UTC) #5
bsalomon
lgtm, but can you keep an eye on the bots after landing and revert if ...
5 years, 6 months ago (2015-06-23 20:04:31 UTC) #6
Chris Dalton
On 2015/06/23 20:04:31, bsalomon wrote: > lgtm, but can you keep an eye on the ...
5 years, 6 months ago (2015-06-23 20:17:25 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1194783003/60001
5 years, 6 months ago (2015-06-23 20:18:01 UTC) #10
commit-bot: I haz the power
The author cdalton@nvidia.com has not signed Google Contributor License Agreement. Please visit https://cla.developers.google.com to sign ...
5 years, 6 months ago (2015-06-23 20:18:03 UTC) #11
commit-bot: I haz the power
5 years, 6 months ago (2015-06-23 20:23:47 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/d416a5b10ff9e6d4f55a1f5b0419722132d68ff3

Powered by Google App Engine
This is Rietveld 408576698