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

Side by Side Diff: dm/DM.cpp

Issue 1782913002: Rename the kRAW_SkEncodedFormat to kDNG_SkEncodedFormat as it is actually only used for DNG for… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix code formatting 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 | « no previous file | include/codec/SkEncodedFormat.h » ('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 "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 nativeModes.push_back(CodecSrc::kCodecZeroInit_Mode); 478 nativeModes.push_back(CodecSrc::kCodecZeroInit_Mode);
479 switch (codec->getEncodedFormat()) { 479 switch (codec->getEncodedFormat()) {
480 case SkEncodedFormat::kJPEG_SkEncodedFormat: 480 case SkEncodedFormat::kJPEG_SkEncodedFormat:
481 nativeModes.push_back(CodecSrc::kScanline_Mode); 481 nativeModes.push_back(CodecSrc::kScanline_Mode);
482 nativeModes.push_back(CodecSrc::kStripe_Mode); 482 nativeModes.push_back(CodecSrc::kStripe_Mode);
483 nativeModes.push_back(CodecSrc::kCroppedScanline_Mode); 483 nativeModes.push_back(CodecSrc::kCroppedScanline_Mode);
484 break; 484 break;
485 case SkEncodedFormat::kWEBP_SkEncodedFormat: 485 case SkEncodedFormat::kWEBP_SkEncodedFormat:
486 nativeModes.push_back(CodecSrc::kSubset_Mode); 486 nativeModes.push_back(CodecSrc::kSubset_Mode);
487 break; 487 break;
488 case SkEncodedFormat::kRAW_SkEncodedFormat: 488 case SkEncodedFormat::kDNG_SkEncodedFormat:
489 break; 489 break;
490 default: 490 default:
491 nativeModes.push_back(CodecSrc::kScanline_Mode); 491 nativeModes.push_back(CodecSrc::kScanline_Mode);
492 nativeModes.push_back(CodecSrc::kStripe_Mode); 492 nativeModes.push_back(CodecSrc::kStripe_Mode);
493 break; 493 break;
494 } 494 }
495 495
496 SkTArray<CodecSrc::DstColorType> colorTypes; 496 SkTArray<CodecSrc::DstColorType> colorTypes;
497 colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType); 497 colorTypes.push_back(CodecSrc::kGetFromCanvas_DstColorType);
498 switch (codec->getInfo().colorType()) { 498 switch (codec->getInfo().colorType()) {
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 Reporter* reporter, 1480 Reporter* reporter,
1481 GrContextFactory* fac tory); 1481 GrContextFactory* fac tory);
1482 } // namespace skiatest 1482 } // namespace skiatest
1483 1483
1484 #if !defined(SK_BUILD_FOR_IOS) 1484 #if !defined(SK_BUILD_FOR_IOS)
1485 int main(int argc, char** argv) { 1485 int main(int argc, char** argv) {
1486 SkCommandLineFlags::Parse(argc, argv); 1486 SkCommandLineFlags::Parse(argc, argv);
1487 return dm_main(); 1487 return dm_main();
1488 } 1488 }
1489 #endif 1489 #endif
OLDNEW
« no previous file with comments | « no previous file | include/codec/SkEncodedFormat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698