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

Side by Side Diff: tools/PictureRenderingFlags.cpp

Issue 103033002: Big Cleanup: SkBitmapFactory, SkLazyPixelRef, SkImageCache (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebase one last time Created 7 years 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/LazyDecodeBitmap.cpp ('k') | tools/bench_pictures_main.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 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 #include "SkBitmapFactory.h"
14 #include "SkCommandLineFlags.h" 13 #include "SkCommandLineFlags.h"
15 #include "SkData.h" 14 #include "SkData.h"
16 #include "SkImage.h" 15 #include "SkImage.h"
17 #include "SkImageDecoder.h" 16 #include "SkImageDecoder.h"
18 #include "SkString.h" 17 #include "SkString.h"
19 18
20 // Alphabetized list of flags used by this file or bench_ and render_pictures. 19 // Alphabetized list of flags used by this file or bench_ and render_pictures.
21 DEFINE_string(bbh, "none", "bbhType [width height]: Set the bounding box hierarc hy type to " 20 DEFINE_string(bbh, "none", "bbhType [width height]: Set the bounding box hierarc hy type to "
22 "be used. Accepted values are: none, rtree, grid. " 21 "be used. Accepted values are: none, rtree, grid. "
23 "Not compatible with --pipe. With value " 22 "Not compatible with --pipe. With value "
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 if (FLAGS_pipe && sk_tools::PictureRenderer::kNone_BBoxHierarchyType != bbhType) { 326 if (FLAGS_pipe && sk_tools::PictureRenderer::kNone_BBoxHierarchyType != bbhType) {
328 error.printf("--pipe and --bbh cannot be used together\n"); 327 error.printf("--pipe and --bbh cannot be used together\n");
329 return NULL; 328 return NULL;
330 } 329 }
331 } 330 }
332 renderer->setBBoxHierarchyType(bbhType); 331 renderer->setBBoxHierarchyType(bbhType);
333 renderer->setScaleFactor(SkDoubleToScalar(FLAGS_scale)); 332 renderer->setScaleFactor(SkDoubleToScalar(FLAGS_scale));
334 333
335 return renderer.detach(); 334 return renderer.detach();
336 } 335 }
OLDNEW
« no previous file with comments | « tools/LazyDecodeBitmap.cpp ('k') | tools/bench_pictures_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698