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

Unified Diff: tools/PictureRenderer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/CopyTilesRenderer.cpp ('k') | tools/PictureRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/PictureRenderer.h
diff --git a/tools/PictureRenderer.h b/tools/PictureRenderer.h
index e1434686c68acb1908867ac29fb43b8855f16191..fadf97085fcd79f1b33e84b182cf7f24198dfa00 100644
--- a/tools/PictureRenderer.h
+++ b/tools/PictureRenderer.h
@@ -28,6 +28,7 @@
#include "image_expectations.h"
+struct GrContextOptions;
class SkBitmap;
class SkCanvas;
class SkGLContext;
@@ -392,7 +393,7 @@ public:
return fGrContext;
}
- const GrContext::Options& getGrContextOptions() {
+ const GrContextOptions& getGrContextOptions() {
return fGrContextFactory.getGlobalOptions();
}
#endif
@@ -406,7 +407,7 @@ public:
}
#if SK_SUPPORT_GPU
- explicit PictureRenderer(const GrContext::Options &opts)
+ explicit PictureRenderer(const GrContextOptions &opts)
#else
PictureRenderer()
#endif
@@ -498,7 +499,7 @@ private:
class RecordPictureRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- RecordPictureRenderer(const GrContext::Options &opts) : INHERITED(opts) { }
+ RecordPictureRenderer(const GrContextOptions &opts) : INHERITED(opts) { }
#endif
bool render(SkBitmap** out = NULL) override;
@@ -519,7 +520,7 @@ private:
class PipePictureRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- PipePictureRenderer(const GrContext::Options &opts) : INHERITED(opts) { }
+ PipePictureRenderer(const GrContextOptions &opts) : INHERITED(opts) { }
#endif
bool render(SkBitmap** out = NULL) override;
@@ -533,7 +534,7 @@ private:
class SimplePictureRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- SimplePictureRenderer(const GrContext::Options &opts) : INHERITED(opts) { }
+ SimplePictureRenderer(const GrContextOptions &opts) : INHERITED(opts) { }
#endif
virtual void init(const SkPicture* pict,
@@ -554,7 +555,7 @@ private:
class TiledPictureRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- TiledPictureRenderer(const GrContext::Options &opts);
+ TiledPictureRenderer(const GrContextOptions &opts);
#else
TiledPictureRenderer();
#endif
@@ -689,7 +690,7 @@ private:
class PlaybackCreationRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- PlaybackCreationRenderer(const GrContext::Options &opts) : INHERITED(opts) { }
+ PlaybackCreationRenderer(const GrContextOptions &opts) : INHERITED(opts) { }
#endif
void setup() override;
@@ -709,7 +710,7 @@ private:
};
#if SK_SUPPORT_GPU
-extern PictureRenderer* CreateGatherPixelRefsRenderer(const GrContext::Options& opts);
+extern PictureRenderer* CreateGatherPixelRefsRenderer(const GrContextOptions& opts);
#else
extern PictureRenderer* CreateGatherPixelRefsRenderer();
#endif
« no previous file with comments | « tools/CopyTilesRenderer.cpp ('k') | tools/PictureRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698