diff options
author | Jim Van Verth <jvanverth@google.com> | 2017-08-31 16:44:08 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-09-01 13:29:07 +0000 |
commit | d74f3f2c0b03552b0ef60dc3fbf9e98d4ab754a2 (patch) | |
tree | 396fd57e2aeaf147f34522dc67e7d3a79baab812 /src/gpu/GrDrawOpAtlas.h | |
parent | 10a4c591cacfd80776302bb745c63d906b813b1e (diff) |
Move texture proxy allocation for atlas to constructor.
This is to set up for allocating additional texture proxies as needed.
Change-Id: Ibc0480c30d8efd6ccf8278f6dbdd3bfa3ee2397d
Reviewed-on: https://skia-review.googlesource.com/41744
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'src/gpu/GrDrawOpAtlas.h')
-rw-r--r-- | src/gpu/GrDrawOpAtlas.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gpu/GrDrawOpAtlas.h b/src/gpu/GrDrawOpAtlas.h index 87bd6954f4..e2c050330e 100644 --- a/src/gpu/GrDrawOpAtlas.h +++ b/src/gpu/GrDrawOpAtlas.h @@ -176,7 +176,8 @@ public: } private: - GrDrawOpAtlas(GrContext*, sk_sp<GrTextureProxy>, int numPlotsX, int numPlotsY); + GrDrawOpAtlas(GrContext*, GrPixelConfig config, int width, int height, + int numPlotsX, int numPlotsY); /** * The backing GrTexture for a GrDrawOpAtlas is broken into a spatial grid of Plots. The Plots @@ -288,6 +289,9 @@ private: GrContext* fContext; sk_sp<GrTextureProxy> fProxy; + GrPixelConfig fPixelConfig; + int fTextureWidth; + int fTextureHeight; int fPlotWidth; int fPlotHeight; SkDEBUGCODE(uint32_t fNumPlots;) |