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

Side by Side Diff: dm/DMSrcSink.h

Issue 1568883003: remove SkGPipe (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 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 | « dm/DM.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 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef DMSrcSink_DEFINED 8 #ifndef DMSrcSink_DEFINED
9 #define DMSrcSink_DEFINED 9 #define DMSrcSink_DEFINED
10 10
11 #include "DMGpuSupport.h" 11 #include "DMGpuSupport.h"
12 #include "SkBBHFactory.h" 12 #include "SkBBHFactory.h"
13 #include "SkBBoxHierarchy.h" 13 #include "SkBBoxHierarchy.h"
14 #include "SkBitmap.h" 14 #include "SkBitmap.h"
15 #include "SkBitmapRegionDecoder.h" 15 #include "SkBitmapRegionDecoder.h"
16 #include "SkCanvas.h" 16 #include "SkCanvas.h"
17 #include "SkData.h" 17 #include "SkData.h"
18 #include "SkGPipe.h"
19 #include "SkPicture.h" 18 #include "SkPicture.h"
20 #include "gm.h" 19 #include "gm.h"
21 20
22 namespace DM { 21 namespace DM {
23 22
24 // This is just convenience. It lets you use either return "foo" or return SkSt ringPrintf(...). 23 // This is just convenience. It lets you use either return "foo" or return SkSt ringPrintf(...).
25 struct ImplicitString : public SkString { 24 struct ImplicitString : public SkString {
26 template <typename T> 25 template <typename T>
27 ImplicitString(const T& s) : SkString(s) {} 26 ImplicitString(const T& s) : SkString(s) {}
28 ImplicitString() : SkString("") {} 27 ImplicitString() : SkString("") {}
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 }; 308 };
310 309
311 class ViaUpright : public Via { 310 class ViaUpright : public Via {
312 public: 311 public:
313 ViaUpright(SkMatrix, Sink*); 312 ViaUpright(SkMatrix, Sink*);
314 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 313 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
315 private: 314 private:
316 const SkMatrix fMatrix; 315 const SkMatrix fMatrix;
317 }; 316 };
318 317
319 class ViaPipe : public Via {
320 public:
321 explicit ViaPipe(Sink* sink) : Via(sink) {}
322 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
323 };
324
325 class ViaRemote : public Via { 318 class ViaRemote : public Via {
326 public: 319 public:
327 ViaRemote(bool cache, Sink* sink) : Via(sink), fCache(cache) {} 320 ViaRemote(bool cache, Sink* sink) : Via(sink), fCache(cache) {}
328 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 321 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
329 private: 322 private:
330 bool fCache; 323 bool fCache;
331 }; 324 };
332 325
333 class ViaSerialization : public Via { 326 class ViaSerialization : public Via {
334 public: 327 public:
(...skipping 24 matching lines...) Expand all
359 352
360 class ViaTwice : public Via { 353 class ViaTwice : public Via {
361 public: 354 public:
362 explicit ViaTwice(Sink* sink) : Via(sink) {} 355 explicit ViaTwice(Sink* sink) : Via(sink) {}
363 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 356 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
364 }; 357 };
365 358
366 } // namespace DM 359 } // namespace DM
367 360
368 #endif//DMSrcSink_DEFINED 361 #endif//DMSrcSink_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | dm/DMSrcSink.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698