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

Side by Side Diff: dm/DM.cpp

Issue 168653002: Change device factories to take SkImageInfo instead of SkBitmap::Config (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix PdfViewer Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | dm/DMCpuTask.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 // Main binary for DM. 1 // Main binary for DM.
2 // For a high-level overview, please see dm/README. 2 // For a high-level overview, please see dm/README.
3 3
4 #include "GrContext.h" 4 #include "GrContext.h"
5 #include "GrContextFactory.h" 5 #include "GrContextFactory.h"
6 #include "SkCommandLineFlags.h" 6 #include "SkCommandLineFlags.h"
7 #include "SkForceLinking.h" 7 #include "SkForceLinking.h"
8 #include "SkGraphics.h" 8 #include "SkGraphics.h"
9 #include "SkString.h" 9 #include "SkString.h"
10 #include "gm.h" 10 #include "gm.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 s[i] = tolower(s[i]); 46 s[i] = tolower(s[i]);
47 } 47 }
48 return s; 48 return s;
49 } 49 }
50 50
51 static void kick_off_tasks(const SkTDArray<GMRegistry::Factory>& gms, 51 static void kick_off_tasks(const SkTDArray<GMRegistry::Factory>& gms,
52 const SkTArray<SkString>& configs, 52 const SkTArray<SkString>& configs,
53 const DM::Expectations& expectations, 53 const DM::Expectations& expectations,
54 DM::Reporter* reporter, 54 DM::Reporter* reporter,
55 DM::TaskRunner* tasks) { 55 DM::TaskRunner* tasks) {
56 const SkBitmap::Config _565 = SkBitmap::kRGB_565_Config; 56 const SkColorType _565 = kRGB_565_SkColorType;
57 const SkBitmap::Config _8888 = SkBitmap::kARGB_8888_Config; 57 const SkColorType _8888 = kPMColor_SkColorType;
58 const GrContextFactory::GLContextType native = GrContextFactory::kNative_GLC ontextType; 58 const GrContextFactory::GLContextType native = GrContextFactory::kNative_GLC ontextType;
59 const GrContextFactory::GLContextType null = GrContextFactory::kNull_GLCon textType; 59 const GrContextFactory::GLContextType null = GrContextFactory::kNull_GLCon textType;
60 const GrContextFactory::GLContextType debug = GrContextFactory::kDebug_GLCo ntextType; 60 const GrContextFactory::GLContextType debug = GrContextFactory::kDebug_GLCo ntextType;
61 const GrContextFactory::GLContextType angle = 61 const GrContextFactory::GLContextType angle =
62 #if SK_ANGLE 62 #if SK_ANGLE
63 GrContextFactory::kANGLE_GLContextType; 63 GrContextFactory::kANGLE_GLContextType;
64 #else 64 #else
65 native; 65 native;
66 #endif 66 #endif
67 const GrContextFactory::GLContextType mesa = 67 const GrContextFactory::GLContextType mesa =
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 SkGraphics::Term(); 149 SkGraphics::Term();
150 150
151 return reporter.failed() > 0; 151 return reporter.failed() > 0;
152 } 152 }
153 153
154 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 154 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
155 int main(int argc, char** argv) { 155 int main(int argc, char** argv) {
156 return tool_main(argc, argv); 156 return tool_main(argc, argv);
157 } 157 }
158 #endif 158 #endif
OLDNEW
« no previous file with comments | « no previous file | dm/DMCpuTask.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698