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

Side by Side Diff: src/core/SkBitmapDevice.cpp

Issue 1697863002: blitters for sRGB and float16 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 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 | « samplecode/SampleApp.cpp ('k') | src/core/SkBlitter.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 2013 Google Inc. 2 * Copyright 2013 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 #include "SkBitmapDevice.h" 8 #include "SkBitmapDevice.h"
9 #include "SkConfig8888.h" 9 #include "SkConfig8888.h"
10 #include "SkDraw.h" 10 #include "SkDraw.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 SkAlphaType canonicalAlphaType = info.alphaType(); 48 SkAlphaType canonicalAlphaType = info.alphaType();
49 49
50 switch (info.colorType()) { 50 switch (info.colorType()) {
51 case kAlpha_8_SkColorType: 51 case kAlpha_8_SkColorType:
52 break; 52 break;
53 case kRGB_565_SkColorType: 53 case kRGB_565_SkColorType:
54 canonicalAlphaType = kOpaque_SkAlphaType; 54 canonicalAlphaType = kOpaque_SkAlphaType;
55 break; 55 break;
56 case kN32_SkColorType: 56 case kN32_SkColorType:
57 break; 57 break;
58 case kRGBA_F16_SkColorType:
59 break;
58 default: 60 default:
59 return false; 61 return false;
60 } 62 }
61 63
62 if (newAlphaType) { 64 if (newAlphaType) {
63 *newAlphaType = canonicalAlphaType; 65 *newAlphaType = canonicalAlphaType;
64 } 66 }
65 return true; 67 return true;
66 } 68 }
67 69
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 paint.getRasterizer() || 389 paint.getRasterizer() ||
388 paint.getPathEffect() || 390 paint.getPathEffect() ||
389 paint.isFakeBoldText() || 391 paint.isFakeBoldText() ||
390 paint.getStyle() != SkPaint::kFill_Style || 392 paint.getStyle() != SkPaint::kFill_Style ||
391 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode)) 393 !SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode))
392 { 394 {
393 return true; 395 return true;
394 } 396 }
395 return false; 397 return false;
396 } 398 }
OLDNEW
« no previous file with comments | « samplecode/SampleApp.cpp ('k') | src/core/SkBlitter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698