fix no-gpu build
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2253073003 TBR=robertphilips NOTREECHECKS=true Review-Url: https://codereview.chromium.org/2253073003
This commit is contained in:
parent
bd4121ab24
commit
0e7bddfb34
@ -8,11 +8,14 @@
|
||||
#ifndef SkImage_Base_DEFINED
|
||||
#define SkImage_Base_DEFINED
|
||||
|
||||
#include "GrTexture.h"
|
||||
#include "SkAtomics.h"
|
||||
#include "SkImage.h"
|
||||
#include "SkSurface.h"
|
||||
|
||||
#if SK_SUPPORT_GPU
|
||||
#include "GrTexture.h"
|
||||
#endif
|
||||
|
||||
#include <new>
|
||||
|
||||
class GrTextureParams;
|
||||
@ -41,7 +44,9 @@ public:
|
||||
int srcX, int srcY, CachingHint) const;
|
||||
|
||||
virtual GrTexture* peekTexture() const { return nullptr; }
|
||||
#if SK_SUPPORT_GPU
|
||||
virtual sk_sp<GrTexture> refPinnedTexture(uint32_t* uniqueID) const { return nullptr; }
|
||||
#endif
|
||||
virtual SkImageCacherator* peekCacherator() const { return nullptr; }
|
||||
|
||||
// return a read-only copy of the pixels. We promise to not modify them,
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
#if SK_SUPPORT_GPU
|
||||
#include "GrContext.h"
|
||||
#include "GrImageIDTextureAdjuster.h"
|
||||
#include "SkGr.h"
|
||||
#include "SkGrPriv.h"
|
||||
#endif
|
||||
@ -194,8 +195,6 @@ bool SkImage_Raster::getROPixels(SkBitmap* dst, CachingHint) const {
|
||||
return true;
|
||||
}
|
||||
|
||||
#include "GrImageIDTextureAdjuster.h"
|
||||
|
||||
GrTexture* SkImage_Raster::asTextureRef(GrContext* ctx, const GrTextureParams& params,
|
||||
SkSourceGammaTreatment gammaTreatment) const {
|
||||
#if SK_SUPPORT_GPU
|
||||
|
Loading…
Reference in New Issue
Block a user