• Home
  • Raw
  • Download

Lines Matching +full:cap +full:- +full:std

4  * Use of this source code is governed by a BSD-style license that can be
45 bmp.allocPixels(canvas->imageInfo()); in writeCanvasToPng()
46 SkAssertResult(canvas->readPixels(bmp, 0, 0)); in writeCanvasToPng()
57 GLTestContext* gl = factory->getContextInfo(GrContextFactory::kGL_ContextType, in getCanvas()
60 gl = factory->getContextInfo(GrContextFactory::kGLES_ContextType, in getCanvas()
64 gl->makeCurrent(); in getCanvas()
71 this->enableGPU(fGPUEnabled); in getCanvas()
73 SkCanvas* target = fSurface->getCanvas(); in getCanvas()
78 //fDebugCanvas->setOverdrawViz(true); in drawToPng()
79 auto* canvas = this->getCanvas(); in drawToPng()
80 canvas->clear(SK_ColorTRANSPARENT); in drawToPng()
81 fDebugCanvas->drawTo(canvas, n, m); in drawToPng()
82 //fDebugCanvas->setOverdrawViz(false); in drawToPng()
83 return writeCanvasToPng(this->getCanvas()); in drawToPng()
88 SkIRect bounds = this->getBounds(); in writeOutSkp()
93 fDebugCanvas->draw(canvas); in writeOutSkp()
95 return recorder.finishRecordingAsPicture()->serialize(); in writeOutSkp()
99 auto result = fContextFactory->get(GrContextFactory::kGL_ContextType, in directContext()
102 result = fContextFactory->get(GrContextFactory::kGLES_ContextType, in directContext()
111 bounds = fPicture->cullRect().roundOut(); in getBounds()
113 int maxRTSize = this->directContext()->maxRenderTargetSize(); in getBounds()
114 bounds = SkIRect::MakeWH(std::min(bounds.width(), maxRTSize), in getBounds()
115 std::min(bounds.height(), maxRTSize)); in getBounds()
123 bounds = SkIRect::MakeWH(std::min(bounds.width(), kMaxWidth), in getBounds()
124 std::min(bounds.height(), kMaxHeight)); in getBounds()
144 SkIRect bounds = this->getBounds(); in createCPUSurface()
145 ColorAndProfile cap = ColorModes[fColorMode]; in createCPUSurface() local
146 auto colorSpace = kRGBA_F16_SkColorType == cap.fColorType in createCPUSurface()
149 SkImageInfo info = SkImageInfo::Make(bounds.size(), cap.fColorType, kPremul_SkAlphaType, in createCPUSurface()
150 cap.fSRGB ? colorSpace : nullptr); in createCPUSurface()
155 auto context = this->directContext(); in createGPUSurface()
156 SkIRect bounds = this->getBounds(); in createGPUSurface()
157 ColorAndProfile cap = ColorModes[fColorMode]; in createGPUSurface() local
158 auto colorSpace = kRGBA_F16_SkColorType == cap.fColorType in createGPUSurface()
161 SkImageInfo info = SkImageInfo::Make(bounds.size(), cap.fColorType, kPremul_SkAlphaType, in createGPUSurface()
162 cap.fSRGB ? colorSpace : nullptr); in createGPUSurface()
179 SkSurface* surface = this->createGPUSurface(); in enableGPU()
188 fDebugCanvas->drawTo(this->getCanvas(), this->getLastOp()); in enableGPU()
189 fSurface->flush(); in enableGPU()
196 fSurface.reset(this->createCPUSurface()); in enableGPU()
210 this->enableGPU(fGPUEnabled); in initPictureFromStream()
213 SkIRect bounds = this->getBounds(); in initPictureFromStream()
214 fDebugCanvas = std::make_unique<DebugCanvas>(bounds.width(), bounds.height()); in initPictureFromStream()
215 fDebugCanvas->drawPicture(fPicture); in initPictureFromStream()
218 fDebugCanvas->drawTo(this->getCanvas(), this->getLastOp()); in initPictureFromStream()
219 fSurface->flush(); in initPictureFromStream()
224 SkCanvas* canvas = this->getCanvas(); in getJsonOps()
230 writer.appendBool("drawGpuOpBounds", fDebugCanvas->getDrawGpuOpBounds()); in getJsonOps()
232 fDebugCanvas->toJSON(writer, fUrlDataManager, canvas); in getJsonOps()
240 SkCanvas* canvas = this->getCanvas(); in getJsonOpsTask()
245 fDebugCanvas->toJSONOpsTask(writer, canvas); in getJsonOpsTask()
253 sk_sp<SkSurface> surface(this->createCPUSurface()); in getJsonInfo()
254 SkCanvas* canvas = surface->getCanvas(); in getJsonInfo()
257 fDebugCanvas->drawTo(canvas, n); in getJsonInfo()
263 SkM44 vm = fDebugCanvas->getCurrentMatrix(); in getJsonInfo()
264 SkIRect clip = fDebugCanvas->getCurrentClip(); in getJsonInfo()
280 bmp.allocPixels(this->getCanvas()->imageInfo().makeWH(1, 1)); in getPixel()
281 SkAssertResult(this->getCanvas()->readPixels(bmp, x, y)); in getPixel()