Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: dm/DMSrcSink.h

Issue 849103004: Make SkStream *not* ref counted. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase, just in case. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef DMSrcSink_DEFINED 1 #ifndef DMSrcSink_DEFINED
2 #define DMSrcSink_DEFINED 2 #define DMSrcSink_DEFINED
3 3
4 #include "DMGpuSupport.h" 4 #include "DMGpuSupport.h"
5 #include "SkBBHFactory.h" 5 #include "SkBBHFactory.h"
6 #include "SkBBoxHierarchy.h" 6 #include "SkBBoxHierarchy.h"
7 #include "SkBitmap.h" 7 #include "SkBitmap.h"
8 #include "SkCanvas.h" 8 #include "SkCanvas.h"
9 #include "SkData.h" 9 #include "SkData.h"
10 #include "SkGPipe.h" 10 #include "SkGPipe.h"
11 #include "SkPicture.h" 11 #include "SkPicture.h"
12 #include "SkStream.h"
13 #include "gm.h" 12 #include "gm.h"
14 13
15 namespace DM { 14 namespace DM {
16 15
17 // This is just convenience. It lets you use either return "foo" or return SkSt ringPrintf(...). 16 // This is just convenience. It lets you use either return "foo" or return SkSt ringPrintf(...).
18 struct ImplicitString : public SkString { 17 struct ImplicitString : public SkString {
19 template <typename T> 18 template <typename T>
20 ImplicitString(const T& s) : SkString(s) {} 19 ImplicitString(const T& s) : SkString(s) {}
21 }; 20 };
22 typedef ImplicitString Error; 21 typedef ImplicitString Error;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); } 163 const char* fileExtension() const SK_OVERRIDE { return fSink->fileExtension( ); }
165 private: 164 private:
166 const int fW, fH; 165 const int fW, fH;
167 SkAutoTDelete<SkBBHFactory> fFactory; 166 SkAutoTDelete<SkBBHFactory> fFactory;
168 SkAutoTDelete<Sink> fSink; 167 SkAutoTDelete<Sink> fSink;
169 }; 168 };
170 169
171 } // namespace DM 170 } // namespace DM
172 171
173 #endif//DMSrcSink_DEFINED 172 #endif//DMSrcSink_DEFINED
OLDNEW
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698