aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawOpAtlas.h
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2017-08-31 16:44:08 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-09-01 13:29:07 +0000
commitd74f3f2c0b03552b0ef60dc3fbf9e98d4ab754a2 (patch)
tree396fd57e2aeaf147f34522dc67e7d3a79baab812 /src/gpu/GrDrawOpAtlas.h
parent10a4c591cacfd80776302bb745c63d906b813b1e (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.h6
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;)