OLD | NEW |
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 #include "DMSrcSink.h" | 8 #include "DMSrcSink.h" |
9 #include "SkAndroidCodec.h" | 9 #include "SkAndroidCodec.h" |
10 #include "SkCodec.h" | 10 #include "SkCodec.h" |
(...skipping 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 | 934 |
935 Error NullSink::draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const { | 935 Error NullSink::draw(const Src& src, SkBitmap*, SkWStream*, SkString*) const { |
936 SkAutoTDelete<SkCanvas> canvas(SkCreateNullCanvas()); | 936 SkAutoTDelete<SkCanvas> canvas(SkCreateNullCanvas()); |
937 return src.draw(canvas); | 937 return src.draw(canvas); |
938 } | 938 } |
939 | 939 |
940 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ | 940 /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~*/ |
941 | 941 |
942 DEFINE_bool(gpuStats, false, "Append GPU stats to the log for each GPU task?"); | 942 DEFINE_bool(gpuStats, false, "Append GPU stats to the log for each GPU task?"); |
943 | 943 |
944 GPUSink::GPUSink(GrContextFactory::GLContextType ct, | 944 GPUSink::GPUSink(GrContextFactory::ContextType ct, |
945 GrContextFactory::GLContextOptions options, | 945 GrContextFactory::ContextOptions options, |
946 int samples, | 946 int samples, |
947 bool diText, | 947 bool diText, |
948 SkColorType colorType, | 948 SkColorType colorType, |
949 SkColorProfileType profileType, | 949 SkColorProfileType profileType, |
950 bool threaded) | 950 bool threaded) |
951 : fContextType(ct) | 951 : fContextType(ct) |
952 , fContextOptions(options) | 952 , fContextOptions(options) |
953 , fSampleCount(samples) | 953 , fSampleCount(samples) |
954 , fUseDIText(diText) | 954 , fUseDIText(diText) |
955 , fColorType(colorType) | 955 , fColorType(colorType) |
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1506 skr.visit(i, drawsAsSingletonPictures); | 1506 skr.visit(i, drawsAsSingletonPictures); |
1507 } | 1507 } |
1508 sk_sp<SkPicture> macroPic(macroRec.finishRecordingAsPicture()); | 1508 sk_sp<SkPicture> macroPic(macroRec.finishRecordingAsPicture()); |
1509 | 1509 |
1510 canvas->drawPicture(macroPic); | 1510 canvas->drawPicture(macroPic); |
1511 return check_against_reference(bitmap, src, fSink); | 1511 return check_against_reference(bitmap, src, fSink); |
1512 }); | 1512 }); |
1513 } | 1513 } |
1514 | 1514 |
1515 } // namespace DM | 1515 } // namespace DM |
OLD | NEW |