Lines Matching defs:surface

113     sp<Surface> surface(new Surface(bufferProducer, true));
114 if (surface == NULL) {
119 gSurfaceClassInfo.ctor, (jlong)surface.get());
128 surface->incStrong(&sRefBaseOwner);
149 sp<Surface> surface(new Surface(producer, true));
150 if (surface == NULL) {
155 surface->incStrong(&sRefBaseOwner);
156 return jlong(surface.get());
197 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject));
199 if (!isSurfaceValid(surface)) {
216 status_t err = surface->lock(&outBuffer, dirtyRectPtr);
225 // Associate a SkCanvas object to this surface
260 // Create another reference to the surface and return it. This reference
262 // because the latter could be replaced while the surface is locked.
263 sp<Surface> lockedSurface(surface);
270 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject));
271 if (!isSurfaceValid(surface)) {
275 // detach the canvas from the surface
278 // unlock surface
279 status_t err = surface->unlockAndPost();
287 sp<Surface> surface(reinterpret_cast<Surface *>(nativeObject));
288 if (!isSurfaceValid(surface)) {
292 surface->allocateBuffers();
306 sp<Surface> surface(ctrl->getSurface());
307 if (surface != NULL) {
308 surface->incStrong(&sRefBaseOwner);
310 return reinterpret_cast<jlong>(surface.get());
361 Surface* surface = reinterpret_cast<Surface*>(nativeObject);
362 ANativeWindow* anw = static_cast<ANativeWindow*>(surface);
369 Surface* surface = reinterpret_cast<Surface*>(nativeObject);
370 ANativeWindow* anw = static_cast<ANativeWindow*>(surface);
389 sp<Surface> surface(reinterpret_cast<Surface*>(surfacePtr));
394 proxy->initialize(surface);
403 sp<Surface> surface(reinterpret_cast<Surface*>(surfacePtr));
404 proxy->updateSurface(surface);