Home
last modified time | relevance | path

Searched refs:fSurface (Results 1 – 21 of 21) sorted by relevance

/external/skia/src/gpu/
DSkGrPixelRef.cpp107 fSurface = SkSafeRef(surface->asTexture()); in SkGrPixelRef()
108 if (NULL == fSurface) { in SkGrPixelRef()
109 fSurface = SkSafeRef(surface); in SkGrPixelRef()
112 if (fSurface) { in SkGrPixelRef()
113 SkASSERT(info.width() <= fSurface->width()); in SkGrPixelRef()
114 SkASSERT(info.height() <= fSurface->height()); in SkGrPixelRef()
119 SkSafeUnref(fSurface); in ~SkGrPixelRef()
123 if (fSurface) { in getTexture()
124 return fSurface->asTexture(); in getTexture()
131 if (NULL == fSurface) { in deepCopy()
[all …]
DGrSurfacePriv.h24 SkImageInfo info() const { return fSurface->info(); } in info()
30 bool savePixels(const char* filename) { return fSurface->savePixels(filename); } in savePixels()
32 bool hasPendingRead() const { return fSurface->hasPendingRead(); } in hasPendingRead()
33 bool hasPendingWrite() const { return fSurface->hasPendingWrite(); } in hasPendingWrite()
34 bool hasPendingIO() const { return fSurface->hasPendingIO(); } in hasPendingIO()
37 explicit GrSurfacePriv(GrSurface* surface) : fSurface(surface) {} in GrSurfacePriv()
45 GrSurface* fSurface; variable
/external/skia/src/gpu/gl/angle/
DSkANGLEGLContext.cpp56 , fSurface(EGL_NO_SURFACE) { in SkANGLEGLContext()
95 fSurface = eglCreatePbufferSurface(fDisplay, surfaceConfig, surfaceAttribs); in SkANGLEGLContext()
97 eglMakeCurrent(fDisplay, fSurface, fSurface, fContext); in SkANGLEGLContext()
126 if (fSurface) { in destroyGLContext()
127 eglDestroySurface(fDisplay, fSurface); in destroyGLContext()
128 fSurface = EGL_NO_SURFACE; in destroyGLContext()
137 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in makeCurrent()
143 if (!eglSwapBuffers(fDisplay, fSurface)) { in swapBuffers()
/external/skia/src/gpu/gl/egl/
DSkCreatePlatformGLContext_egl.cpp27 EGLSurface fSurface; member in __anon9f33dc9a0111::EGLGLContext
33 , fSurface(EGL_NO_SURFACE) { in EGLGLContext()
124 fSurface = eglCreatePbufferSurface(fDisplay, surfaceConfig, kSurfaceAttribs); in EGLGLContext()
125 if (EGL_NO_SURFACE == fSurface) { in EGLGLContext()
131 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in EGLGLContext()
166 if (fSurface) { in destroyGLContext()
167 eglDestroySurface(fDisplay, fSurface); in destroyGLContext()
168 fSurface = EGL_NO_SURFACE; in destroyGLContext()
178 if (!eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in makeCurrent()
184 if (!eglSwapBuffers(fDisplay, fSurface)) { in swapBuffers()
/external/skia/debugger/QT/
DSkDrawCommandGeometryWidget.cpp26 fSurface.reset(NULL); in resizeEvent()
29 fSurface.reset(SkSurface::NewRaster(info)); in resizeEvent()
37 if (!fSurface) { in paintEvent()
46 if (const void* pixels = fSurface->peekPixels(&info, &rowBytes)) { in paintEvent()
76 if (!fSurface) { in updateImage()
85 didRender = command->render(fSurface->getCanvas()); in updateImage()
89 fSurface->getCanvas()->clear(SK_ColorTRANSPARENT); in updateImage()
92 fSurface->getCanvas()->flush(); in updateImage()
DSkRasterWidget.cpp25 fSurface.reset(NULL); in resizeEvent()
28 fSurface.reset(SkSurface::NewRaster(info)); in resizeEvent()
40 if (!fSurface) { in paintEvent()
45 fDebugger->draw(fSurface->getCanvas()); in paintEvent()
46 fSurface->getCanvas()->flush(); in paintEvent()
53 if (const void* pixels = fSurface->peekPixels(&info, &rowBytes)) { in paintEvent()
68 if (!fSurface) { in updateImage()
DSkRasterWidget.h35 SkAutoTUnref<SkSurface> fSurface; variable
DSkDrawCommandGeometryWidget.h32 SkAutoTUnref<SkSurface> fSurface; variable
/external/skia/src/views/sdl/
DSkOSWindow_SDL.cpp55 fSurface = NULL; in SkOSWindow()
60 fSurface = SDL_CreateRGBSurface(SDL_SWSURFACE, fScreen->w, fScreen->h, in SkOSWindow()
67 if (fSurface) { in ~SkOSWindow()
68 SDL_FreeSurface(fSurface); in ~SkOSWindow()
88 if ( SDL_MUSTLOCK(fSurface) ) { in doDraw()
89 if ( SDL_LockSurface(fSurface) < 0 ) { in doDraw()
96 if (skia_setBitmapFromSurface(&bitmap, fSurface)) { in doDraw()
101 if ( SDL_MUSTLOCK(fSurface) ) { in doDraw()
102 SDL_UnlockSurface(fSurface); in doDraw()
105 int result = SDL_BlitSurface(fSurface, NULL, fScreen, NULL); in doDraw()
/external/skia/src/views/win/
DSkOSWindow_win.cpp53 fSurface = EGL_NO_SURFACE; in SkOSWindow()
72 if (EGL_NO_SURFACE != fSurface) { in ~SkOSWindow()
73 eglDestroySurface(fDisplay, fSurface); in ~SkOSWindow()
74 fSurface = EGL_NO_SURFACE; in ~SkOSWindow()
488 &fSurface, in attachANGLE()
502 if (eglMakeCurrent(fDisplay, fSurface, fSurface, fContext)) { in attachANGLE()
524 eglDestroySurface(fDisplay, fSurface); in detachANGLE()
525 fSurface = EGL_NO_SURFACE; in detachANGLE()
538 eglSwapBuffers(fDisplay, fSurface); in presentANGLE()
/external/icu/icu4c/source/samples/layout/
DGDIFontMap.cpp19 : FontMap(fileName, pointSize, guiSupport, status), fSurface(surface) in GDIFontMap()
31 LEFontInstance *result = new GDIFontInstance(fSurface, fontName, pointSize, status); in openFont()
DGDIFontInstance.cpp105 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
190 : FontTableCache(), fSurface(surface), fFont(NULL), in GDIFontInstance()
342 fSurface->setFont(this); in readFontTable()
344 HDC hdc = fSurface->getHDC(); in readFontTable()
370 HDC hdc = fSurface->getHDC(); in getGlyphAdvance()
372 fSurface->setFont(this); in getGlyphAdvance()
DGDIFontMap.h35 GDISurface *fSurface;
DGDIFontInstance.h54 GDISurface *fSurface;
/external/skia/example/
DHelloWorld.h43 return fSurface = SkSurface::NewRaster(info); in createSurface()
63 SkSurface* fSurface; variable
DHelloWorld.cpp160 SkImage* snap = fSurface->newImageSnapshot(); in draw()
/external/skia/src/utils/
DSkDeferredCanvas.cpp279 SkSurface* fSurface; member in SkDeferredDevice
292 fSurface = NULL; in SkDeferredDevice()
299 SkRefCnt_SafeAssign(fSurface, surface); in setSurface()
317 SkSafeUnref(fSurface); in ~SkDeferredDevice()
362 if (fSurface) { in aboutToDraw()
363 fSurface->notifyContentWillChange(SkSurface::kDiscard_ContentChangeMode); in aboutToDraw()
434 return fSurface ? fSurface->newImageSnapshot() : NULL; in newImageSnapshot()
456 fSurface->notifyContentWillChange(SkSurface::kRetain_ContentChangeMode); in prepareForImmediatePixelWrite()
/external/skia/include/gpu/gl/angle/
DSkANGLEGLContext.h42 void* fSurface; variable
/external/skia/include/views/
DSkOSWindow_SDL.h36 SDL_Surface* fSurface; variable
DSkOSWindow_Win.h72 EGLSurface fSurface; variable
/external/skia/include/gpu/
DSkGrPixelRef.h59 GrSurface* fSurface;