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

Side by Side Diff: dm/DMSrcSink.h

Issue 1277213002: Support more swizzles to 565 in SkCodec (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update new 565 swizzling functions for scaling Created 5 years, 4 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
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 "SkCanvas.h" 15 #include "SkCanvas.h"
16 #include "SkCodec.h"
17 #include "SkData.h" 16 #include "SkData.h"
18 #include "SkGPipe.h" 17 #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>
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 308
310 class ViaTwice : public Via { 309 class ViaTwice : public Via {
311 public: 310 public:
312 explicit ViaTwice(Sink* sink) : Via(sink) {} 311 explicit ViaTwice(Sink* sink) : Via(sink) {}
313 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override; 312 Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
314 }; 313 };
315 314
316 } // namespace DM 315 } // namespace DM
317 316
318 #endif//DMSrcSink_DEFINED 317 #endif//DMSrcSink_DEFINED
OLDNEW
« no previous file with comments | « dm/DM.cpp ('k') | src/codec/SkBmpCodec.cpp » ('j') | src/codec/SkSwizzler.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698