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

Side by Side Diff: tools/PictureRenderingFlags.cpp

Issue 12440067: Change the name of SkFlags to SkCommandLineFlags. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: ParseCommandLine -> Parse Created 7 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 | Annotate | Revision Log
« no previous file with comments | « tools/PictureRenderingFlags.h ('k') | tools/SkFlags.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 "PictureRenderingFlags.h" 8 #include "PictureRenderingFlags.h"
9 9
10 #include "CopyTilesRenderer.h" 10 #include "CopyTilesRenderer.h"
11 #include "PictureRenderer.h" 11 #include "PictureRenderer.h"
12 #include "picture_utils.h" 12 #include "picture_utils.h"
13 13
14 #include "SkBitmapFactory.h" 14 #include "SkBitmapFactory.h"
15 #include "SkCommandLineFlags.h"
15 #include "SkData.h" 16 #include "SkData.h"
16 #include "SkFlags.h"
17 #include "SkImage.h" 17 #include "SkImage.h"
18 #include "SkImageDecoder.h" 18 #include "SkImageDecoder.h"
19 #include "SkLruImageCache.h" 19 #include "SkLruImageCache.h"
20 #include "SkPurgeableImageCache.h" 20 #include "SkPurgeableImageCache.h"
21 #include "SkString.h" 21 #include "SkString.h"
22 22
23 // Alphabetized list of flags used by this file or bench_ and render_pictures. 23 // Alphabetized list of flags used by this file or bench_ and render_pictures.
24 DEFINE_string(bbh, "none", "bbhType [width height]: Set the bounding box hierarc hy type to " 24 DEFINE_string(bbh, "none", "bbhType [width height]: Set the bounding box hierarc hy type to "
25 "be used. Accepted values are: none, rtree, grid. " 25 "be used. Accepted values are: none, rtree, grid. "
26 "Not compatible with --pipe. With value " 26 "Not compatible with --pipe. With value "
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 if (FLAGS_useVolatileCache && SkAutoTUnref<SkImageCache>( 360 if (FLAGS_useVolatileCache && SkAutoTUnref<SkImageCache>(
361 SkPurgeableImageCache::Create()).get() != NULL) { 361 SkPurgeableImageCache::Create()).get() != NULL) {
362 gFactory.setCacheSelector(&gCacheSelector); 362 gFactory.setCacheSelector(&gCacheSelector);
363 } else { 363 } else {
364 gFactory.setImageCache(&gLruImageCache); 364 gFactory.setImageCache(&gLruImageCache);
365 } 365 }
366 gOnce = true; 366 gOnce = true;
367 } 367 }
368 return gFactory.installPixelRef(data, bitmap); 368 return gFactory.installPixelRef(data, bitmap);
369 } 369 }
OLDNEW
« no previous file with comments | « tools/PictureRenderingFlags.h ('k') | tools/SkFlags.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698