CCPR: Rename GrCCPR* -> GrCC*

Also runs clang-format on the files that don't have special shader
builder styling.

Bug: skia:
Change-Id: I4a67569a7c8472acfb9200644c913844a92e3b2d
Reviewed-on: https://skia-review.googlesource.com/92083
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Reviewed-by: Greg Daniel <egdaniel@google.com>
diff --git a/src/gpu/ccpr/GrCCAtlas.h b/src/gpu/ccpr/GrCCAtlas.h
new file mode 100644
index 0000000..bf17c05
--- /dev/null
+++ b/src/gpu/ccpr/GrCCAtlas.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2017 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef GrCCAtlas_DEFINED
+#define GrCCAtlas_DEFINED
+
+#include "SkRefCnt.h"
+#include "SkSize.h"
+
+class GrCaps;
+class GrDrawOp;
+class GrOnFlushResourceProvider;
+class GrRenderTargetContext;
+class GrTextureProxy;
+struct SkIPoint16;
+
+/**
+ * This class implements a dynamic size GrRectanizer that grows until it reaches the implementation-
+ * dependent max texture size. When finalized, it also creates and stores a GrTextureProxy for the
+ * underlying atlas.
+ */
+class GrCCAtlas {
+public:
+    static constexpr int kMinSize = 1024;
+
+    GrCCAtlas(const GrCaps&, int minWidth, int minHeight);
+    ~GrCCAtlas();
+
+    bool addRect(int devWidth, int devHeight, SkIPoint16* loc);
+    const SkISize& drawBounds() { return fDrawBounds; }
+
+    sk_sp<GrRenderTargetContext> SK_WARN_UNUSED_RESULT
+    finalize(GrOnFlushResourceProvider*, std::unique_ptr<GrDrawOp> atlasOp);
+
+    GrTextureProxy* textureProxy() const { return fTextureProxy.get(); }
+
+private:
+    class Node;
+
+    bool internalPlaceRect(int w, int h, SkIPoint16* loc);
+
+    const int fMaxAtlasSize;
+
+    int fWidth;
+    int fHeight;
+    SkISize fDrawBounds;
+    std::unique_ptr<Node> fTopNode;
+
+    sk_sp<GrTextureProxy> fTextureProxy;
+};
+
+#endif