| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |