| Index: samplecode/SampleApp.h
|
| diff --git a/samplecode/SampleApp.h b/samplecode/SampleApp.h
|
| index 18e75640d77de95390c6c5adfbdd73f0382a3822..ad7a871b9867630524cdaf40c8e8fc44acbb8940 100644
|
| --- a/samplecode/SampleApp.h
|
| +++ b/samplecode/SampleApp.h
|
| @@ -74,7 +74,7 @@ public:
|
| public:
|
|
|
|
|
| - virtual void setUpBackend(SampleWindow* win, int msaaSampleCount) = 0;
|
| + virtual void setUpBackend(SampleWindow* win, int msaaSampleCount, bool deepColor) = 0;
|
|
|
| virtual void tearDownBackend(SampleWindow* win) = 0;
|
|
|
| @@ -97,6 +97,10 @@ public:
|
|
|
| // return the GrRenderTarget backing gpu devices (nullptr if not built with GPU support)
|
| virtual GrRenderTarget* getGrRenderTarget() = 0;
|
| +
|
| + // return the color depth of the output device
|
| + virtual int getColorBits() = 0;
|
| +
|
| private:
|
| typedef SkRefCnt INHERITED;
|
| };
|
| @@ -212,6 +216,7 @@ private:
|
| unsigned fFlipAxis;
|
|
|
| int fMSAASampleCount;
|
| + bool fDeepColor;
|
|
|
| SkScalar fZoomCenterX, fZoomCenterY;
|
|
|
|
|