#if 0 // Disabled until updated to use current API. // Copyright 2019 Google LLC. // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. #include "tools/fiddle/examples.h" // HASH=dbf5f75c1275a3013672f896767140fb REG_FIDDLE(Image_makeColorSpace, 256, 256, false, 5) { void draw(SkCanvas* canvas) { sk_sp normalColorSpace = SkColorSpace::MakeRGB( SkColorSpace::kSRGB_RenderTargetGamma, SkColorSpace::kSRGB_Gamut); sk_sp wackyColorSpace = normalColorSpace->makeColorSpin(); for (auto colorSpace : { normalColorSpace, wackyColorSpace } ) { sk_sp colorSpaced = image->makeColorSpace(colorSpace); canvas->drawImage(colorSpaced, 0, 0); canvas->translate(128, 0); } } } // END FIDDLE #endif // Disabled until updated to use current API.