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

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

Issue 2078623002: Support sRGB dsts in opt code (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 years, 6 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 SkOpts_DEFINED 8 #ifndef SkOpts_DEFINED
9 #define SkOpts_DEFINED 9 #define SkOpts_DEFINED
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Blend ndst src pixels over dst, where both src and dst point to sRGB pixe ls (RGBA or BGRA). 68 // Blend ndst src pixels over dst, where both src and dst point to sRGB pixe ls (RGBA or BGRA).
69 // If nsrc < ndst, we loop over src to create a pattern. 69 // If nsrc < ndst, we loop over src to create a pattern.
70 extern void (*srcover_srgb_srgb)(uint32_t* dst, const uint32_t* src, int nds t, int nsrc); 70 extern void (*srcover_srgb_srgb)(uint32_t* dst, const uint32_t* src, int nds t, int nsrc);
71 71
72 // Color xform RGB1 pixels. Does not change byte ordering. 72 // Color xform RGB1 pixels. Does not change byte ordering.
73 extern void (*color_xform_RGB1_srgb_to_2dot2) (uint32_t* dst, const uint32_t * src, int len, 73 extern void (*color_xform_RGB1_srgb_to_2dot2) (uint32_t* dst, const uint32_t * src, int len,
74 const float srcToDstMatrix[16 ]); 74 const float srcToDstMatrix[16 ]);
75 extern void (*color_xform_RGB1_2dot2_to_2dot2)(uint32_t* dst, const uint32_t * src, int len, 75 extern void (*color_xform_RGB1_2dot2_to_2dot2)(uint32_t* dst, const uint32_t * src, int len,
76 const float srcToDstMatrix[16 ]); 76 const float srcToDstMatrix[16 ]);
77 extern void (*color_xform_RGB1_srgb_to_srgb) (uint32_t* dst, const uint32_t* src, int len,
78 const float srcToDstMatrix[16] );
79 extern void (*color_xform_RGB1_2dot2_to_srgb)(uint32_t* dst, const uint32_t* src, int len,
80 const float srcToDstMatrix[16] );
77 } 81 }
78 82
79 #endif//SkOpts_DEFINED 83 #endif//SkOpts_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698