diff options
author | 2013-11-21 15:23:15 +0000 | |
---|---|---|
committer | 2013-11-21 15:23:15 +0000 | |
commit | 8b656c6db40a99af241e38eae853f887413040cc (patch) | |
tree | 25cea3f2f2ebf057e7c64c2aa7e0ecf6594c34ad /src/gpu/GrDrawTargetCaps.h | |
parent | 32f40ee8b001d7b7c5f1247d4baa5c32eb0c846f (diff) |
Avoid printing draw target info to stderr while running unit tests
Change draw target dump function to return a SkString. Clients can do
whatever they want with the string.
BUG=skia:1837
R=caryclark@google.com, bsalomon@google.com
Author: kkinnunen@nvidia.com
Review URL: https://codereview.chromium.org/72353003
git-svn-id: http://skia.googlecode.com/svn/trunk@12340 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/GrDrawTargetCaps.h')
-rw-r--r-- | src/gpu/GrDrawTargetCaps.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrDrawTargetCaps.h b/src/gpu/GrDrawTargetCaps.h index f6a6dc8a59..e597e099c9 100644 --- a/src/gpu/GrDrawTargetCaps.h +++ b/src/gpu/GrDrawTargetCaps.h @@ -5,13 +5,13 @@ * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ - -#include "SkRefCnt.h" -#include "GrTypes.h" - #ifndef GrDrawTargetCaps_DEFINED #define GrDrawTargetCaps_DEFINED +#include "GrTypes.h" +#include "SkRefCnt.h" +#include "SkString.h" + /** * Represents the draw target capabilities. */ @@ -24,7 +24,7 @@ public: GrDrawTargetCaps& operator= (const GrDrawTargetCaps&); virtual void reset(); - virtual void print() const; + virtual SkString dump() const; bool eightBitPaletteSupport() const { return f8BitPaletteSupport; } bool npotTextureTileSupport() const { return fNPOTTextureTileSupport; } |