Go to file
Robert Phillips 4bc7011802 Separate creation time & flush time behavior in GrDrawOpAtlas (take 3)
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.

TBR=bsalomon@google.com
Change-Id: I276d339d81e7b709140e082a7b58c5584f73ab70
Reviewed-on: https://skia-review.googlesource.com/111100
Commit-Queue: Robert Phillips <robertphillips@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
2018-03-01 15:47:34 +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 work on skimageinfo 2018-02-27 15:12:59 +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 Fix a tiny typo 2018-03-01 14:52:04 +00:00
gm Fall back to blurs for unsupported DrawShadow cases 2018-02-28 20:19:33 +00:00
gn Separate creation time & flush time behavior in GrDrawOpAtlas (take 3) 2018-03-01 15:47:34 +00:00
include Separate creation time & flush time behavior in GrDrawOpAtlas (take 3) 2018-03-01 15:47:34 +00:00
infra Change force_quarantine to use bot id 2018-03-01 14:38:44 +00:00
platform_tools SkQP: do test filtering correctly 2018-02-23 15:57:46 +00:00
resources Support pngs with incorrect CMF bytes 2018-02-28 21:46:03 +00:00
samplecode Fall back to blurs for unsupported DrawShadow cases 2018-02-28 20:19:33 +00:00
site work on skimageinfo 2018-02-27 15:12:59 +00:00
src Separate creation time & flush time behavior in GrDrawOpAtlas (take 3) 2018-03-01 15:47:34 +00:00
tests Separate creation time & flush time behavior in GrDrawOpAtlas (take 3) 2018-03-01 15:47:34 +00:00
third_party Support pngs with incorrect CMF bytes 2018-02-28 21:46:03 +00:00
tools Revert "Fission GrAtlasGlyphCache in two" 2018-02-28 16:37:47 +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 Fix assert format string in GrContext_colorTypeSupportedAsImage test. 2018-02-26 17:02:38 +00:00
BUILD.gn Port 3 API fuzzers to be oss-fuzz friendly 2018-02-27 13:47:28 +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/angle2/ 2f3a0dc5c..98e6a5f7b (2 commits) 2018-03-01 12:05:04 +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 prepare Google3 for the return of SkOpts_hsw.cpp 2018-02-27 18:57:50 +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.