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

Unified Diff: tools/PictureRenderer.h

Issue 1151603005: Revert of Store context options on caps. (Closed) Base URL: https://skia.googlesource.com/skia.git@onecaps
Patch Set: 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 fadf97085fcd79f1b33e84b182cf7f24198dfa00..e1434686c68acb1908867ac29fb43b8855f16191 100644
--- a/tools/PictureRenderer.h
+++ b/tools/PictureRenderer.h
@@ -28,7 +28,6 @@
#include "image_expectations.h"
-struct GrContextOptions;
class SkBitmap;
class SkCanvas;
class SkGLContext;
@@ -393,7 +392,7 @@
return fGrContext;
}
- const GrContextOptions& getGrContextOptions() {
+ const GrContext::Options& getGrContextOptions() {
return fGrContextFactory.getGlobalOptions();
}
#endif
@@ -407,7 +406,7 @@
}
#if SK_SUPPORT_GPU
- explicit PictureRenderer(const GrContextOptions &opts)
+ explicit PictureRenderer(const GrContext::Options &opts)
#else
PictureRenderer()
#endif
@@ -499,7 +498,7 @@
class RecordPictureRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- RecordPictureRenderer(const GrContextOptions &opts) : INHERITED(opts) { }
+ RecordPictureRenderer(const GrContext::Options &opts) : INHERITED(opts) { }
#endif
bool render(SkBitmap** out = NULL) override;
@@ -520,7 +519,7 @@
class PipePictureRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- PipePictureRenderer(const GrContextOptions &opts) : INHERITED(opts) { }
+ PipePictureRenderer(const GrContext::Options &opts) : INHERITED(opts) { }
#endif
bool render(SkBitmap** out = NULL) override;
@@ -534,7 +533,7 @@
class SimplePictureRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- SimplePictureRenderer(const GrContextOptions &opts) : INHERITED(opts) { }
+ SimplePictureRenderer(const GrContext::Options &opts) : INHERITED(opts) { }
#endif
virtual void init(const SkPicture* pict,
@@ -555,7 +554,7 @@
class TiledPictureRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- TiledPictureRenderer(const GrContextOptions &opts);
+ TiledPictureRenderer(const GrContext::Options &opts);
#else
TiledPictureRenderer();
#endif
@@ -690,7 +689,7 @@
class PlaybackCreationRenderer : public PictureRenderer {
public:
#if SK_SUPPORT_GPU
- PlaybackCreationRenderer(const GrContextOptions &opts) : INHERITED(opts) { }
+ PlaybackCreationRenderer(const GrContext::Options &opts) : INHERITED(opts) { }
#endif
void setup() override;
@@ -710,7 +709,7 @@
};
#if SK_SUPPORT_GPU
-extern PictureRenderer* CreateGatherPixelRefsRenderer(const GrContextOptions& opts);
+extern PictureRenderer* CreateGatherPixelRefsRenderer(const GrContext::Options& 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