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

Side by Side Diff: tests/AAClipTest.cpp

Issue 728673002: remove unused kLCD_MaskFormat (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove associated Gr enum Created 6 years, 1 month 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/ports/SkScalerContext_win_dw.cpp ('k') | no next file » | 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 2011 Google Inc. 2 * Copyright 2011 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 "SkAAClip.h" 8 #include "SkAAClip.h"
9 #include "SkCanvas.h" 9 #include "SkCanvas.h"
10 #include "SkMask.h" 10 #include "SkMask.h"
(...skipping 16 matching lines...) Expand all
27 switch (a.fFormat) { 27 switch (a.fFormat) {
28 case SkMask::kBW_Format: 28 case SkMask::kBW_Format:
29 wbytes = (wbytes + 7) >> 3; 29 wbytes = (wbytes + 7) >> 3;
30 break; 30 break;
31 case SkMask::kA8_Format: 31 case SkMask::kA8_Format:
32 case SkMask::k3D_Format: 32 case SkMask::k3D_Format:
33 break; 33 break;
34 case SkMask::kLCD16_Format: 34 case SkMask::kLCD16_Format:
35 wbytes <<= 1; 35 wbytes <<= 1;
36 break; 36 break;
37 case SkMask::kLCD32_Format:
38 case SkMask::kARGB32_Format: 37 case SkMask::kARGB32_Format:
39 wbytes <<= 2; 38 wbytes <<= 2;
40 break; 39 break;
41 default: 40 default:
42 SkDEBUGFAIL("unknown mask format"); 41 SkDEBUGFAIL("unknown mask format");
43 return false; 42 return false;
44 } 43 }
45 44
46 const int h = a.fBounds.height(); 45 const int h = a.fBounds.height();
47 const char* aptr = (const char*)a.fImage; 46 const char* aptr = (const char*)a.fImage;
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 test_empty(reporter); 438 test_empty(reporter);
440 test_path_bounds(reporter); 439 test_path_bounds(reporter);
441 test_irect(reporter); 440 test_irect(reporter);
442 test_rgn(reporter); 441 test_rgn(reporter);
443 test_path_with_hole(reporter); 442 test_path_with_hole(reporter);
444 test_regressions(); 443 test_regressions();
445 test_nearly_integral(reporter); 444 test_nearly_integral(reporter);
446 test_really_a_rect(reporter); 445 test_really_a_rect(reporter);
447 test_crbug_422693(reporter); 446 test_crbug_422693(reporter);
448 } 447 }
OLDNEW
« no previous file with comments | « src/ports/SkScalerContext_win_dw.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698