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

Unified Diff: samplecode/SampleApp.h

Issue 1919993002: Added --deepColor option to SampleApp, triggers creation of a ten-bit/channel buffer on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 4 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
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;
« no previous file with comments | « platform_tools/android/apps/visualbench/src/main/jni/SkOSWindow_AndroidNative.cpp ('k') | samplecode/SampleApp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698