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

Side by Side Diff: src/core/SkSpriteBlitter.h

Issue 1734983003: New GM that exercises gamma-correctness in various parts of the pipeline. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Switched to SkString. Better labels for several tests. Added "bitmap wrapped in shader" to demonstr… Created 4 years, 9 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 | « src/core/SkBlitter_Sprite.cpp ('k') | src/core/SkSpriteBlitter4f.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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkSpriteBlitter_DEFINED 8 #ifndef SkSpriteBlitter_DEFINED
9 #define SkSpriteBlitter_DEFINED 9 #define SkSpriteBlitter_DEFINED
10 10
(...skipping 11 matching lines...) Expand all
22 virtual void setup(const SkPixmap& dst, int left, int top, const SkPaint&); 22 virtual void setup(const SkPixmap& dst, int left, int top, const SkPaint&);
23 23
24 #ifdef SK_DEBUG 24 #ifdef SK_DEBUG
25 void blitH(int x, int y, int width) override; 25 void blitH(int x, int y, int width) override;
26 void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[] ) override; 26 void blitAntiH(int x, int y, const SkAlpha antialias[], const int16_t runs[] ) override;
27 void blitV(int x, int y, int height, SkAlpha alpha) override; 27 void blitV(int x, int y, int height, SkAlpha alpha) override;
28 void blitMask(const SkMask&, const SkIRect& clip) override; 28 void blitMask(const SkMask&, const SkIRect& clip) override;
29 #endif 29 #endif
30 30
31 static SkSpriteBlitter* ChooseD16(const SkPixmap& source, const SkPaint&, Sk TBlitterAllocator*); 31 static SkSpriteBlitter* ChooseD16(const SkPixmap& source, const SkPaint&, Sk TBlitterAllocator*);
32 static SkSpriteBlitter* ChooseL32(const SkPixmap& source, const SkPaint&, Sk TBlitterAllocator*); 32 static SkSpriteBlitter* ChooseLegacy32(const SkPixmap& source, const SkPaint &, SkTBlitterAllocator*);
33 static SkSpriteBlitter* ChooseS32(const SkPixmap& source, const SkPaint&, Sk TBlitterAllocator*); 33 static SkSpriteBlitter* ChooseNew32(const SkPixmap& source, const SkPaint&, SkTBlitterAllocator*, SkColorProfileType dstPt);
34 static SkSpriteBlitter* ChooseF16(const SkPixmap& source, const SkPaint&, Sk TBlitterAllocator*); 34 static SkSpriteBlitter* ChooseF16(const SkPixmap& source, const SkPaint&, Sk TBlitterAllocator*);
35 35
36 protected: 36 protected:
37 SkPixmap fDst; 37 SkPixmap fDst;
38 const SkPixmap fSource; 38 const SkPixmap fSource;
39 int fLeft, fTop; 39 int fLeft, fTop;
40 const SkPaint* fPaint; 40 const SkPaint* fPaint;
41 }; 41 };
42 42
43 #endif 43 #endif
OLDNEW
« no previous file with comments | « src/core/SkBlitter_Sprite.cpp ('k') | src/core/SkSpriteBlitter4f.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698