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

Side by Side Diff: dm/DMSrcSink.cpp

Issue 1845473004: Revert of Move SkGLContext and some GrGLInterface implementations to skgputest module (Closed) Base URL: https://chromium.googlesource.com/skia.git@debugobject
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') | gm/image.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 27 matching lines...) Expand all
38 #endif 38 #endif
39 39
40 #ifdef SK_MOJO 40 #ifdef SK_MOJO
41 #include "SkMojo.mojom.h" 41 #include "SkMojo.mojom.h"
42 #endif 42 #endif
43 43
44 DEFINE_bool(multiPage, false, "For document-type backends, render the source" 44 DEFINE_bool(multiPage, false, "For document-type backends, render the source"
45 " into multiple pages"); 45 " into multiple pages");
46 DEFINE_bool(RAW_threading, true, "Allow RAW decodes to run on multiple threads?" ); 46 DEFINE_bool(RAW_threading, true, "Allow RAW decodes to run on multiple threads?" );
47 47
48 using sk_gpu_test::GrContextFactory;
49
50 namespace DM { 48 namespace DM {
51 49
52 GMSrc::GMSrc(skiagm::GMRegistry::Factory factory) : fFactory(factory) {} 50 GMSrc::GMSrc(skiagm::GMRegistry::Factory factory) : fFactory(factory) {}
53 51
54 Error GMSrc::draw(SkCanvas* canvas) const { 52 Error GMSrc::draw(SkCanvas* canvas) const {
55 SkAutoTDelete<skiagm::GM> gm(fFactory(nullptr)); 53 SkAutoTDelete<skiagm::GM> gm(fFactory(nullptr));
56 canvas->concat(gm->getInitialTransform()); 54 canvas->concat(gm->getInitialTransform());
57 gm->draw(canvas); 55 gm->draw(canvas);
58 return ""; 56 return "";
59 } 57 }
(...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 skr.visit(i, drawsAsSingletonPictures); 1506 skr.visit(i, drawsAsSingletonPictures);
1509 } 1507 }
1510 sk_sp<SkPicture> macroPic(macroRec.finishRecordingAsPicture()); 1508 sk_sp<SkPicture> macroPic(macroRec.finishRecordingAsPicture());
1511 1509
1512 canvas->drawPicture(macroPic); 1510 canvas->drawPicture(macroPic);
1513 return check_against_reference(bitmap, src, fSink); 1511 return check_against_reference(bitmap, src, fSink);
1514 }); 1512 });
1515 } 1513 }
1516 1514
1517 } // namespace DM 1515 } // namespace DM
OLDNEW
« no previous file with comments | « dm/DMSrcSink.h ('k') | gm/image.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698