|
Defer flushes if kPreferNoIO is specified
Prior to this patch clients who were solely uploading to textures (e.g., SW Mask Mgr) would cause extra flushes b.c., even though kPreferNoIO was being specified, resources with pending IO would still be returned even though there was plenty of space in the resource cache.
Committed: https://skia.googlesource.com/skia/+/6e83ac778f8f90939abe3aee3ea865428dff592f
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+70 lines, -22 lines) |
Patch |
|
M |
include/gpu/GrSurface.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrAtlasTextContext.cpp
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/GrGpu.cpp
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/GrResourceCache.h
|
View
|
1
|
2 chunks |
+7 lines, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/GrResourceCache.cpp
|
View
|
1
|
2 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrResourceProvider.cpp
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrSurface.cpp
|
View
|
1
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/gpu/GrTexture.cpp
|
View
|
1
|
1 chunk |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/GrTextureProvider.cpp
|
View
|
1
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
|
M |
src/gpu/gl/GrGLRenderTarget.cpp
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/ResourceCacheTest.cpp
|
View
|
1
2
3
|
9 chunks |
+13 lines, -13 lines |
0 comments
|
Download
|
Total messages: 11 (4 generated)
|