In the config name, report the viewport, if one is provided.
authorscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 13 Dec 2012 22:07:08 +0000 (22:07 +0000)
committerscroggo@google.com <scroggo@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Thu, 13 Dec 2012 22:07:08 +0000 (22:07 +0000)
Review URL: https://codereview.appspot.com/6942048

git-svn-id: http://skia.googlecode.com/svn/trunk@6804 2bbb7eff-a529-9590-31e7-b0007b416f81

tools/PictureRenderer.h

index eda89a07681a6d56670a31bb50214aa673c87d66..99c58e068f292d5a076fa34697785bfd00059b9d 100644 (file)
@@ -130,6 +130,9 @@ public:
      */
     SkString getConfigName() {
         SkString config = this->getConfigNameInternal();
+        if (!fViewport.isEmpty()) {
+            config.appendf("_viewport_%ix%i", fViewport.width(), fViewport.height());
+        }
         if (kRTree_BBoxHierarchyType == fBBoxHierarchyType) {
             config.append("_rtree");
         } else if (kTileGrid_BBoxHierarchyType == fBBoxHierarchyType) {