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

Unified Diff: debugger/QT/SkGLWidget.cpp

Issue 2181733002: Fix debugger build by specifying nullptr for color space. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: debugger/QT/SkGLWidget.cpp
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp
index 975052f57d4f6bc63adbf5b2ce38c8fe57dfa116..5a9c3f0d17955de4221852646ca948d6376f4e74 100644
--- a/debugger/QT/SkGLWidget.cpp
+++ b/debugger/QT/SkGLWidget.cpp
@@ -62,8 +62,9 @@ void SkGLWidget::createRenderTarget() {
desc.fOrigin = kBottomLeft_GrSurfaceOrigin;
sk_sp<GrRenderTarget> curRenderTarget(
fCurContext->textureProvider()->wrapBackendRenderTarget(desc));
+ sk_sp<SkColorSpace> colorSpace = SkColorSpace::NewNamed(SkColorSpace::kSRGB_Named);
SkSurfaceProps props(0, kUnknown_SkPixelGeometry);
- fGpuDevice.reset(SkGpuDevice::Make(std::move(curRenderTarget), &props,
+ fGpuDevice.reset(SkGpuDevice::Make(std::move(curRenderTarget), colorSpace, &props,
Brian Osman 2016/07/25 17:54:42 If you want to preserve the previous behavior, you
f(malita) 2016/07/25 17:55:46 +1 Let's just pass nullptr.
chrishtr 2016/07/25 17:58:40 Done.
SkGpuDevice::kUninit_InitContents).release());
fCanvas.reset(new SkCanvas(fGpuDevice));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698