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

Side by Side Diff: tools/CopyTilesRenderer.h

Issue 1158433006: Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: remove case statement accidentally checked in Created 5 years, 7 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 | « tests/GLProgramsTest.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
11 #include "PictureRenderer.h" 11 #include "PictureRenderer.h"
12 #include "SkTypes.h" 12 #include "SkTypes.h"
13 13
14 struct GrContextOptions;
14 class SkPicture; 15 class SkPicture;
15 class SkString; 16 class SkString;
16 17
17 namespace sk_tools { 18 namespace sk_tools {
18 /** 19 /**
19 * PictureRenderer that draws the picture and then extracts it into tiles. For large pictures, 20 * PictureRenderer that draws the picture and then extracts it into tiles. For large pictures,
20 * it will divide the picture into large tiles and draw the picture once fo r each large tile. 21 * it will divide the picture into large tiles and draw the picture once fo r each large tile.
21 */ 22 */
22 class CopyTilesRenderer : public TiledPictureRenderer { 23 class CopyTilesRenderer : public TiledPictureRenderer {
23 24
24 public: 25 public:
25 #if SK_SUPPORT_GPU 26 #if SK_SUPPORT_GPU
26 CopyTilesRenderer(const GrContext::Options &opts, int x, int y); 27 CopyTilesRenderer(const GrContextOptions &opts, int x, int y);
27 #else 28 #else
28 CopyTilesRenderer(int x, int y); 29 CopyTilesRenderer(int x, int y);
29 #endif 30 #endif
30 virtual void init(const SkPicture* pict, 31 virtual void init(const SkPicture* pict,
31 const SkString* writePath, 32 const SkString* writePath,
32 const SkString* mismatchPath, 33 const SkString* mismatchPath,
33 const SkString* inputFilename, 34 const SkString* inputFilename,
34 bool useChecksumBasedFilenames, 35 bool useChecksumBasedFilenames,
35 bool useMultiPictureDraw) override; 36 bool useMultiPictureDraw) override;
36 37
(...skipping 11 matching lines...) Expand all
48 49
49 int fLargeTileWidth; 50 int fLargeTileWidth;
50 int fLargeTileHeight; 51 int fLargeTileHeight;
51 52
52 SkString getConfigNameInternal() override; 53 SkString getConfigNameInternal() override;
53 54
54 typedef TiledPictureRenderer INHERITED; 55 typedef TiledPictureRenderer INHERITED;
55 }; 56 };
56 } // sk_tools 57 } // sk_tools
57 #endif // CopyTilesRenderer_DEFINED 58 #endif // CopyTilesRenderer_DEFINED
OLDNEW
« no previous file with comments | « tests/GLProgramsTest.cpp ('k') | tools/CopyTilesRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698