| Index: tools/viewer/sk_app/android/Window_android.cpp
|
| diff --git a/tools/viewer/sk_app/android/Window_android.cpp b/tools/viewer/sk_app/android/Window_android.cpp
|
| index 94be02c9336acc1493834c06918dad40ada2bfa7..9def29fbf4c31fd1e0a82bb88029b42fd4493f8e 100644
|
| --- a/tools/viewer/sk_app/android/Window_android.cpp
|
| +++ b/tools/viewer/sk_app/android/Window_android.cpp
|
| @@ -37,12 +37,12 @@ void Window_android::setTitle(const char* title) {
|
| SkDebugf("Title: %s", title);
|
| }
|
|
|
| -bool Window_android::attach(BackEndType attachType, int msaaSampleCount) {
|
| +bool Window_android::attach(BackEndType attachType, const DisplayParams& params) {
|
| if (kVulkan_BackendType != attachType) {
|
| return false;
|
| }
|
|
|
| - mSampleCount = msaaSampleCount;
|
| + fDisplayParams = params;
|
|
|
| // We delay the creation of fTestContext until Android informs us that
|
| // the native window is ready to use.
|
| @@ -53,7 +53,7 @@ void Window_android::initDisplay(ANativeWindow* window) {
|
| SkASSERT(window);
|
| ContextPlatformData_android platformData;
|
| platformData.fNativeWindow = window;
|
| - fWindowContext = VulkanWindowContext::Create((void*)&platformData, mSampleCount);
|
| + fWindowContext = VulkanWindowContext::Create((void*)&platformData, mSampleCount, fSRGB);
|
| }
|
|
|
| static void android_app_write_cmd(struct android_app* android_app, int8_t cmd) {
|
|
|