Fix some remaining SK_GRAPHITE_ENABLED defines.
Change-Id: I7a4cd8e2c629ba53e40adc379ea92f86f70d11da Reviewed-on: https://skia-review.googlesource.com/c/skia/+/549857 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com> Auto-Submit: Jim Van Verth <jvanverth@google.com>
This commit is contained in:
parent
f3e875b263
commit
6ed17ef4c5
@ -18,7 +18,7 @@
|
||||
#if SK_SUPPORT_GPU
|
||||
#include "include/gpu/GrTypes.h"
|
||||
#endif
|
||||
#if SK_GRAPHITE_ENABLED
|
||||
#if defined(SK_GRAPHITE_ENABLED)
|
||||
#include "include/gpu/graphite/GraphiteTypes.h"
|
||||
#endif
|
||||
#include <functional> // std::function
|
||||
@ -50,7 +50,7 @@ class SkYUVAPixmaps;
|
||||
|
||||
enum class SkEncodedImageFormat;
|
||||
|
||||
#if SK_GRAPHITE_ENABLED
|
||||
#if defined(SK_GRAPHITE_ENABLED)
|
||||
namespace skgpu::graphite {
|
||||
class Recorder;
|
||||
};
|
||||
|
@ -544,7 +544,7 @@ sk_sp<SkImage> MakeTextureImage(SkCanvas* canvas, sk_sp<SkImage> orig) {
|
||||
|
||||
return orig->makeTextureImage(dContext);
|
||||
}
|
||||
#if SK_GRAPHITE_ENABLED
|
||||
#if defined(SK_GRAPHITE_ENABLED)
|
||||
else if (canvas->recorder()) {
|
||||
return orig->makeTextureImage(canvas->recorder());
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ protected:
|
||||
virtual bool isGpuContext() { return true; }
|
||||
|
||||
sk_sp<GrDirectContext> fContext;
|
||||
#if SK_GRAPHITE_ENABLED
|
||||
#if defined(SK_GRAPHITE_ENABLED)
|
||||
std::unique_ptr<skgpu::graphite::Context> fGraphiteContext;
|
||||
std::unique_ptr<skgpu::graphite::Recorder> fGraphiteRecorder;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user