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>
diff --git a/src/gpu/GrDrawOpAtlas.h b/src/gpu/GrDrawOpAtlas.h
index 87bd695..e2c0503 100644
--- a/src/gpu/GrDrawOpAtlas.h
+++ b/src/gpu/GrDrawOpAtlas.h
@@ -176,7 +176,8 @@
     }
 
 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 @@
 
     GrContext*            fContext;
     sk_sp<GrTextureProxy> fProxy;
+    GrPixelConfig         fPixelConfig;
+    int                   fTextureWidth;
+    int                   fTextureHeight;
     int                   fPlotWidth;
     int                   fPlotHeight;
     SkDEBUGCODE(uint32_t  fNumPlots;)