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

Side by Side Diff: tools/CopyTilesRenderer.h

Issue 639013003: Update old tools to allow MultiPictureDraw rendering (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update to ToT Created 6 years, 2 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 | « debugger/QT/SkDebuggerGUI.cpp ('k') | tools/CopyTilesRenderer.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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef CopyTilesRenderer_DEFINED 8 #ifndef CopyTilesRenderer_DEFINED
9 #define CopyTilesRenderer_DEFINED 9 #define CopyTilesRenderer_DEFINED
10 10
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 #if SK_SUPPORT_GPU 25 #if SK_SUPPORT_GPU
26 CopyTilesRenderer(const GrContext::Options &opts, int x, int y); 26 CopyTilesRenderer(const GrContext::Options &opts, int x, int y);
27 #else 27 #else
28 CopyTilesRenderer(int x, int y); 28 CopyTilesRenderer(int x, int y);
29 #endif 29 #endif
30 virtual void init(const SkPicture* pict, 30 virtual void init(const SkPicture* pict,
31 const SkString* writePath, 31 const SkString* writePath,
32 const SkString* mismatchPath, 32 const SkString* mismatchPath,
33 const SkString* inputFilename, 33 const SkString* inputFilename,
34 bool useChecksumBasedFilenames) SK_OVERRIDE; 34 bool useChecksumBasedFilenames,
35 bool useMultiPictureDraw) SK_OVERRIDE;
35 36
36 /** 37 /**
37 * Similar to TiledPictureRenderer, this will draw a PNG for each tile. However, the 38 * Similar to TiledPictureRenderer, this will draw a PNG for each tile. However, the
38 * numbering (and actual tiles) will be different. 39 * numbering (and actual tiles) will be different.
39 */ 40 */
40 virtual bool render(SkBitmap** out) SK_OVERRIDE; 41 virtual bool render(SkBitmap** out) SK_OVERRIDE;
41 42
42 virtual bool supportsTimingIndividualTiles() SK_OVERRIDE { return false; } 43 virtual bool supportsTimingIndividualTiles() SK_OVERRIDE { return false; }
43 44
44 private: 45 private:
45 int fXTilesPerLargeTile; 46 int fXTilesPerLargeTile;
46 int fYTilesPerLargeTile; 47 int fYTilesPerLargeTile;
47 48
48 int fLargeTileWidth; 49 int fLargeTileWidth;
49 int fLargeTileHeight; 50 int fLargeTileHeight;
50 51
51 virtual SkString getConfigNameInternal() SK_OVERRIDE; 52 virtual SkString getConfigNameInternal() SK_OVERRIDE;
52 53
53 typedef TiledPictureRenderer INHERITED; 54 typedef TiledPictureRenderer INHERITED;
54 }; 55 };
55 } // sk_tools 56 } // sk_tools
56 #endif // CopyTilesRenderer_DEFINED 57 #endif // CopyTilesRenderer_DEFINED
OLDNEW
« no previous file with comments | « debugger/QT/SkDebuggerGUI.cpp ('k') | tools/CopyTilesRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698