• Home
  • Raw
  • Download

Lines Matching +full:new +full:- +full:cap

4  * Use of this source code is governed by a BSD-style license that can be
30 fContextFactory = new GrContextFactory(grContextOpts); in Request()
42 bmp.allocPixels(canvas->imageInfo()); in writeCanvasToPng()
43 SkAssertResult(canvas->readPixels(bmp, 0, 0)); in writeCanvasToPng()
53 GLTestContext* gl = factory->getContextInfo(GrContextFactory::kGL_ContextType, in getCanvas()
56 gl = factory->getContextInfo(GrContextFactory::kGLES_ContextType, in getCanvas()
60 gl->makeCurrent(); in getCanvas()
66 this->enableGPU(fGPUEnabled); in getCanvas()
68 SkCanvas* target = fSurface->getCanvas(); in getCanvas()
73 //fDebugCanvas->setOverdrawViz(true); in drawToPng()
74 fDebugCanvas->drawTo(this->getCanvas(), n, m); in drawToPng()
75 //fDebugCanvas->setOverdrawViz(false); in drawToPng()
76 return writeCanvasToPng(this->getCanvas()); in drawToPng()
81 SkIRect bounds = this->getBounds(); in writeOutSkp()
86 fDebugCanvas->draw(canvas); in writeOutSkp()
88 return recorder.finishRecordingAsPicture()->serialize(); in writeOutSkp()
92 GrContext* result = fContextFactory->get(GrContextFactory::kGL_ContextType, in getContext()
95 result = fContextFactory->get(GrContextFactory::kGLES_ContextType, in getContext()
104 bounds = fPicture->cullRect().roundOut(); in getBounds()
106 int maxRTSize = this->getContext()->maxRenderTargetSize(); in getBounds()
137 SkIRect bounds = this->getBounds(); in createCPUSurface()
138 ColorAndProfile cap = ColorModes[fColorMode]; in createCPUSurface() local
139 auto colorSpace = kRGBA_F16_SkColorType == cap.fColorType in createCPUSurface()
142 SkImageInfo info = SkImageInfo::Make(bounds.width(), bounds.height(), cap.fColorType, in createCPUSurface()
143 kPremul_SkAlphaType, cap.fSRGB ? colorSpace : nullptr); in createCPUSurface()
148 GrContext* context = this->getContext(); in createGPUSurface()
149 SkIRect bounds = this->getBounds(); in createGPUSurface()
150 ColorAndProfile cap = ColorModes[fColorMode]; in createGPUSurface() local
151 auto colorSpace = kRGBA_F16_SkColorType == cap.fColorType in createGPUSurface()
154 SkImageInfo info = SkImageInfo::Make(bounds.width(), bounds.height(), cap.fColorType, in createGPUSurface()
155 kPremul_SkAlphaType, cap.fSRGB ? colorSpace: nullptr); in createGPUSurface()
172 SkSurface* surface = this->createGPUSurface(); in enableGPU()
181 fDebugCanvas->drawTo(this->getCanvas(), this->getLastOp()); in enableGPU()
182 this->getCanvas()->flush(); in enableGPU()
189 fSurface.reset(this->createCPUSurface()); in enableGPU()
202 // reinitialize canvas with the new picture dimensions in initPictureFromStream()
203 this->enableGPU(fGPUEnabled); in initPictureFromStream()
206 SkIRect bounds = this->getBounds(); in initPictureFromStream()
207 fDebugCanvas.reset(new DebugCanvas(bounds.width(), bounds.height())); in initPictureFromStream()
208 fDebugCanvas->drawPicture(fPicture); in initPictureFromStream()
211 fDebugCanvas->drawTo(this->getCanvas(), this->getLastOp()); in initPictureFromStream()
212 this->getCanvas()->flush(); in initPictureFromStream()
217 SkCanvas* canvas = this->getCanvas(); in getJsonOps()
223 writer.appendBool("drawGpuOpBounds", fDebugCanvas->getDrawGpuOpBounds()); in getJsonOps()
225 fDebugCanvas->toJSON(writer, fUrlDataManager, n, canvas); in getJsonOps()
233 SkCanvas* canvas = this->getCanvas(); in getJsonOpList()
238 fDebugCanvas->toJSONOpList(writer, n, canvas); in getJsonOpList()
246 sk_sp<SkSurface> surface(this->createCPUSurface()); in getJsonInfo()
247 SkCanvas* canvas = surface->getCanvas(); in getJsonInfo()
250 fDebugCanvas->drawTo(canvas, n); in getJsonInfo()
256 SkMatrix vm = fDebugCanvas->getCurrentMatrix(); in getJsonInfo()
257 SkIRect clip = fDebugCanvas->getCurrentClip(); in getJsonInfo()
273 bmp.allocPixels(this->getCanvas()->imageInfo().makeWH(1, 1)); in getPixel()
274 SkAssertResult(this->getCanvas()->readPixels(bmp, x, y)); in getPixel()