Go to file
Robert Phillips 84d823a5e2 Revert "Separate creation time & flush time behavior in GrDrawOpAtlas (take 2)"
This reverts commit 96165ebeaa.

Reason for revert: DFT GMs w/ LCD text are slightly different

Original change's description:
> Separate creation time & flush time behavior in GrDrawOpAtlas (take 2)
> 
> This CL clarifies what is going on in the GrDrawOpAtlas and GrAtlasGlyphCache.
> 
> For the GrDrawOpAtlas:
>   At creation time all the allowed pages are created (with their backing GrTextureProxies) but they aren't instantiated.
> 
>   The GrDrawOpAtlas::instantiate call is called in preFlushCB and allocates any pages known to be needed at the start of flush
> 
>   GrDrawOpAtlas::addToAtlas is called at flush time and, if a new page is activated, will instantiated it at that time.
> 
>   During compaction, an unused page will be deInstantiated but its Plots and backing GrTextureProxy will remain alive.
> 
> The GrAtlasGlyphCache reflects the changes to the GrDrawOpAtlas
>   It now carries a GrProxyProvider for when it needs to create an atlas
>   It passes in a GrResourceProvider* at flush time to allow instantiation.
> 
>   It does not, yet, allocate that GrDrawOpAtlases it might ever require.
> 
> Change-Id: Ie9b64b13e261b01ee14be09fbf7e17841b7781dc
> Reviewed-on: https://skia-review.googlesource.com/109749
> Reviewed-by: Jim Van Verth <jvanverth@google.com>
> Commit-Queue: Robert Phillips <robertphillips@google.com>

TBR=jvanverth@google.com,robertphillips@google.com

Change-Id: I62efc61c8394477e54d6e79fa2f65180c91a4515
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/110220
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
2018-02-26 16:03:58 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench Move control of explicit GPU resource allocation to GrContextOptions 2018-02-08 12:36:29 +00:00
bin remove fetch-gn dependency on buildtools 2018-02-21 20:42:26 +00:00
debugger Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
dm Add threaded backend sink to DM. Fix a scheduler bug. 2018-02-25 16:36:24 +00:00
docs remove deprecated method 2018-02-20 21:41:44 +00:00
example Revert "Revert "Revert "Revert "Revert "Revert "Redefine the meaning of sample counts in GPU backend."""""" 2018-02-03 01:59:59 +00:00
experimental [skottie] Nested animation support 2018-02-23 19:15:26 +00:00
fuzz Add guidance for oss-fuzzer for new path version 2018-02-23 13:35:37 +00:00
gm move some RRect methods into priv 2018-02-22 19:09:10 +00:00
gn Revert "Separate creation time & flush time behavior in GrDrawOpAtlas (take 2)" 2018-02-26 16:03:58 +00:00
include Revert "Separate creation time & flush time behavior in GrDrawOpAtlas (take 2)" 2018-02-26 16:03:58 +00:00
infra Switch Win10 NUC5i7RYH and NUCD34010WYKH bots to new Windows image. 2018-02-23 22:24:06 +00:00
platform_tools SkQP: do test filtering correctly 2018-02-23 15:57:46 +00:00
resources [skottie] Nested animation support 2018-02-23 19:15:26 +00:00
samplecode Resurrect pathfinder in viewer and rename to "bisect" 2018-02-20 20:44:33 +00:00
site SkQP/Doc: new APKs again 2018-02-23 20:40:06 +00:00
src Revert "Separate creation time & flush time behavior in GrDrawOpAtlas (take 2)" 2018-02-26 16:03:58 +00:00
tests Revert "Separate creation time & flush time behavior in GrDrawOpAtlas (take 2)" 2018-02-26 16:03:58 +00:00
third_party Revert -isystem related CLs. 2018-02-26 15:33:17 +00:00
tools Add threaded backend sink to DM. Fix a scheduler bug. 2018-02-25 16:36:24 +00:00
.clang-format Mark flatennable macros as block beginning/ending in .clang-format 2017-01-09 15:31:36 +00:00
.gitignore Ignore generated README.recipes.md 2017-10-26 18:07:27 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Add link annotation support to SkSVGDevice. 2018-02-06 23:35:16 +00:00
BUILD.gn Add nativeFonts flag to Viewer. 2018-02-21 03:31:14 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll skia/third_party/externals/skcms/ 4cbf9f959..0d1aefed6 (1 commit) 2018-02-26 14:54:47 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Presubmit that modified json files are valid json. 2018-02-12 16:32:12 +00:00
public.bzl Add nativeFonts flag to Viewer. 2018-02-21 03:31:14 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Test change 2018-02-15 17:46:19 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.