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

Side by Side Diff: dm/DMSrcSink.cpp

Issue 1856703002: Revert of Rename enums in GrContextFactory to remove "GL" (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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 | « dm/DMSrcSink.h ('k') | tests/GrContextAbandonTest.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 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
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::ContextType ct, 944 GPUSink::GPUSink(GrContextFactory::GLContextType ct,
945 GrContextFactory::ContextOptions options, 945 GrContextFactory::GLContextOptions 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
1511 skr.visit(i, drawsAsSingletonPictures); 1511 skr.visit(i, drawsAsSingletonPictures);
1512 } 1512 }
1513 sk_sp<SkPicture> macroPic(macroRec.finishRecordingAsPicture()); 1513 sk_sp<SkPicture> macroPic(macroRec.finishRecordingAsPicture());
1514 1514
1515 canvas->drawPicture(macroPic); 1515 canvas->drawPicture(macroPic);
1516 return check_against_reference(bitmap, src, fSink); 1516 return check_against_reference(bitmap, src, fSink);
1517 }); 1517 });
1518 } 1518 }
1519 1519
1520 } // namespace DM 1520 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMSrcSink.h ('k') | tests/GrContextAbandonTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698