/cts/tests/tests/view/src/android/view/cts/ |
TextureViewSnapshotTestActivity.java | 65 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 66 mProducerThread = new GLProducerThread(surface, new GLRendererImpl(), 72 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 76 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { 82 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GetBitmapActivity.java | 81 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 85 mCamera.setPreviewTexture(surface); 94 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 99 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { 106 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
GlTextureViewActivity.java | 49 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 50 mRenderThread = new ImageFlipRenderThread(getResources(), surface); 71 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 75 public boolean onSurfaceTextureDestroyed(SurfaceTexture surface) { 86 public void onSurfaceTextureUpdated(SurfaceTexture surface) {
|
/frameworks/native/libs/gui/tests/ |
Malicious.cpp | 19 #include <gui/Surface.h> 152 sp<Surface> surface = new Surface(malicious); local 154 ASSERT_EQ(NO_ERROR, surface->connect(NATIVE_WINDOW_API_CPU, nullptr, false)); 156 ASSERT_EQ(NO_ERROR, surface->lock(&buffer, nullptr)); 157 ASSERT_EQ(NO_ERROR, surface->unlockAndPost()); 161 ASSERT_EQ(FAILED_TRANSACTION, surface->lock(&buffer, nullptr)); 166 sp<Surface> surface = new Surface(malicious) local 180 sp<Surface> surface = new Surface(malicious); local 194 sp<Surface> surface = new Surface(malicious); local [all...] |
/frameworks/base/libs/hwui/tests/unit/ |
VectorDrawableAtlasTests.cpp | 42 atlasSurface = VDRects[0].surface; 45 ASSERT_TRUE(VDRects[i].surface.get() != nullptr); 49 if (atlasSurface.get() == VDRects[i].surface.get()) { 51 if (atlasSurface.get() == VDRects[j].surface.get()) { 58 // first 1/3 rects should all be in the same surface 61 ASSERT_EQ(VDRects[i].surface.get(), atlasSurface.get()); 64 // first rect is using atlas and last is a standalone surface 65 ASSERT_NE(VDRects[0].surface.get(), VDRects[MAX_RECTS - 1].surface.get()); 72 ASSERT_EQ(VDRects[i].surface.get(), VDRect.surface.get()) [all...] |
/external/mesa3d/src/gallium/drivers/radeonsi/ |
si_dma.c | 138 unsigned dst_mode = rdst->surface.level[dst_level].mode; 145 unsigned index = rtiled->surface.tiling_index[tiled_lvl]; 154 assert(dst_mode != rsrc->surface.level[src_level].mode); 170 slice_tile_max = (rtiled->surface.level[tiled_lvl].nblk_x * 171 rtiled->surface.level[tiled_lvl].nblk_y) / (8*8) - 1; 177 height = rtiled->surface.level[tiled_lvl].nblk_y; 178 base = rtiled->surface.level[tiled_lvl].offset; 179 addr = rlinear->surface.level[linear_lvl].offset; 180 addr += rlinear->surface.level[linear_lvl].slice_size * linear_z; 186 tile_split = util_logbase2(rtiled->surface.tile_split >> 6) [all...] |
/external/skia/fuzz/ |
FuzzDrawFunctions.cpp | 117 sk_sp<SkSurface> surface; local 118 init_surface(fuzz, &surface); 158 SkCanvas* cnv = surface->getCanvas(); 169 sk_sp<SkSurface> surface; local 170 init_surface(fuzz, &surface); 174 surface->getCanvas()->drawCircle(a, b, c, p); 180 sk_sp<SkSurface> surface; local 181 init_surface(fuzz, &surface); 185 surface->getCanvas()->drawLine(a, b, c, d, p); 191 sk_sp<SkSurface> surface; local 212 sk_sp<SkSurface> surface; local 263 sk_sp<SkSurface> surface; local 276 sk_sp<SkSurface> surface; local 304 sk_sp<SkSurface> surface; local [all...] |
/external/skqp/fuzz/ |
FuzzDrawFunctions.cpp | 112 sk_sp<SkSurface> surface; local 113 init_surface(fuzz, &surface); 153 SkCanvas* cnv = surface->getCanvas(); 164 sk_sp<SkSurface> surface; local 165 init_surface(fuzz, &surface); 169 surface->getCanvas()->drawCircle(a, b, c, p); 175 sk_sp<SkSurface> surface; local 176 init_surface(fuzz, &surface); 180 surface->getCanvas()->drawLine(a, b, c, d, p); 186 sk_sp<SkSurface> surface; local 207 sk_sp<SkSurface> surface; local 258 sk_sp<SkSurface> surface; local 271 sk_sp<SkSurface> surface; local 299 sk_sp<SkSurface> surface; local [all...] |
/external/skia/gm/ |
image_shader.cpp | 30 auto surface(SkSurface::MakeRaster(info)); 31 surface->getCanvas()->clear(0); 32 surface->getCanvas()->drawPicture(pic); 33 return surface->makeImageSnapshot(); 40 auto surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info)); 41 if (!surface) { 44 surface->getCanvas()->clear(0); 45 surface->getCanvas()->drawPicture(pic); 46 return surface->makeImageSnapshot();
|
/external/skia/src/gpu/ |
GrTextureProxy.cpp | 77 sk_sp<GrSurface> surface= this->createSurfaceImpl(resourceProvider, 1, local 81 if (!surface) { 85 SkASSERT(!surface->asRenderTarget()); 86 SkASSERT(surface->asTexture()); 87 return surface; 152 void GrTextureProxy::validateLazySurface(const GrSurface* surface) { 153 SkASSERT(!surface->asRenderTarget()); 156 SkASSERT(surface->asTexture()); 158 GrMipMapped::kYes == surface->asTexture()->texturePriv().mipMapped());
|
GrResourceAllocator.cpp | 139 // 'surface' can be reused. Add it back to the free pool. 140 void GrResourceAllocator::freeUpSurface(sk_sp<GrSurface> surface) { 141 const GrScratchKey &key = surface->resourcePriv().getScratchKey(); 147 if (surface->getUniqueKey().isValid()) { 148 // If the surface has a unique key we throw it back into the resource cache. 155 fFreePool.insert(key, surface.release()); 170 sk_sp<GrSurface> surface(fFreePool.findAndRemove(key, filter)); 171 if (surface) { 173 SkBudgeted::kNo == surface->resourcePriv().isBudgeted()) { 175 // match budgeted proxies w/ budgeted surface and unbudgeted w/ unbudgeted [all...] |
/external/skqp/gm/ |
image_shader.cpp | 30 auto surface(SkSurface::MakeRaster(info)); 31 surface->getCanvas()->clear(0); 32 surface->getCanvas()->drawPicture(pic); 33 return surface->makeImageSnapshot(); 40 auto surface(SkSurface::MakeRenderTarget(ctx, SkBudgeted::kNo, info)); 41 if (!surface) { 44 surface->getCanvas()->clear(0); 45 surface->getCanvas()->drawPicture(pic); 46 return surface->makeImageSnapshot();
|
/frameworks/base/libs/hwui/renderthread/ |
VulkanManager.h | 89 void destroySurface(VulkanSurface* surface); 96 bool isCurrent(VulkanSurface* surface) { return true; } 98 int getAge(VulkanSurface* surface); 103 SkSurface* getBackbufferSurface(VulkanSurface* surface); 106 void swapBuffers(VulkanSurface* surface); 114 void destroyBuffers(VulkanSurface* surface); 116 bool createSwapchain(VulkanSurface* surface); 117 void createBuffers(VulkanSurface* surface, VkFormat format, VkExtent2D extent); 119 VulkanSurface::BackbufferInfo* getAvailableBackbuffer(VulkanSurface* surface);
|
/frameworks/native/opengl/tests/fillrate/ |
fillrate.cpp | 44 EGLSurface surface; local 61 surface = eglCreateWindowSurface(dpy, config, window, NULL); 63 eglMakeCurrent(dpy, surface, surface, context); 64 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 65 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 127 eglSwapBuffers(dpy, surface); 137 eglSwapBuffers(dpy, surface); 149 eglSwapBuffers(dpy, surface);
|
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
RsYuv.java | 30 import android.view.Surface; 48 private Surface mSurface; 127 public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) { 128 android.util.Log.v("cpa", "onSurfaceTextureAvailable " + surface); 129 mSurface = new Surface(surface); 134 public void onSurfaceTextureSizeChanged(SurfaceTexture surface, int width, int height) { 135 android.util.Log.v("cpa", "onSurfaceTextureSizeChanged " + surface); 136 mSurface = new Surface(surface); [all...] |
/external/skqp/src/gpu/ |
GrResourceAllocator.cpp | 134 // 'surface' can be reused. Add it back to the free pool. 135 void GrResourceAllocator::freeUpSurface(sk_sp<GrSurface> surface) { 136 const GrScratchKey &key = surface->resourcePriv().getScratchKey(); 142 if (surface->getUniqueKey().isValid()) { 143 // If the surface has a unique key we throw it back into the resource cache. 150 fFreePool.insert(key, surface.release()); 165 sk_sp<GrSurface> surface(fFreePool.findAndRemove(key, filter)); 166 if (surface) { 168 SkBudgeted::kNo == surface->resourcePriv().isBudgeted()) { 170 // match budgeted proxies w/ budgeted surface and unbudgeted w/ unbudgeted [all...] |
GrSurfaceProxy.cpp | 70 GrSurfaceProxy::GrSurfaceProxy(sk_sp<GrSurface> surface, GrSurfaceOrigin origin, SkBackingFit fit) 71 : INHERITED(std::move(surface)) 97 GrSurface* surface, bool needsStencil) { 99 GrRenderTarget* rt = surface->asRenderTarget(); 131 sk_sp<GrSurface> surface; local 133 surface.reset(resourceProvider->createApproxTexture(desc, fFlags).release()); 135 surface.reset(resourceProvider->createTexture(desc, fBudgeted, fFlags).release()); 137 if (!surface) { 141 surface->asTexture()->texturePriv().setMipColorMode(mipColorMode); 143 if (!GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, surface.get(), needsStencil)) 174 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, sampleCnt, needsStencil, local [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
BlackFrame.java | 31 import android.view.Surface.OutOfResourcesException; 42 final SurfaceControl surface; field in class:BlackFrame.BlackSurface 52 surface = dc.makeOverlay() 59 transaction.setAlpha(surface, 1); 60 transaction.setLayer(surface, layer); 61 transaction.show(surface); 63 " BLACK " + surface + ": CREATE layer=" + layer); 67 t.setAlpha(surface, alpha); 74 t.setPosition(surface, mTmpFloats[Matrix.MTRANS_X], 76 t.setMatrix(surface, [all...] |
/frameworks/native/opengl/tests/finish/ |
finish.cpp | 45 EGLSurface surface; local 62 surface = eglCreateWindowSurface(dpy, config, window, NULL); 64 eglMakeCurrent(dpy, surface, surface, context); 65 eglQuerySurface(dpy, surface, EGL_WIDTH, &w); 66 eglQuerySurface(dpy, surface, EGL_HEIGHT, &h); 113 eglSwapBuffers(dpy, surface); 127 eglSwapBuffers(dpy, surface); 142 eglSwapBuffers(dpy, surface); 157 eglSwapBuffers(dpy, surface); [all...] |
/frameworks/native/opengl/tools/glgen/specs/egl/ |
EGL14.spec | 12 EGLBoolean eglDestroySurface ( EGLDisplay dpy, EGLSurface surface ) 13 EGLBoolean eglQuerySurface ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value ) 19 EGLBoolean eglSurfaceAttrib ( EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value ) 20 EGLBoolean eglBindTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 21 EGLBoolean eglReleaseTexImage ( EGLDisplay dpy, EGLSurface surface, EGLint buffer ) 32 EGLBoolean eglSwapBuffers ( EGLDisplay dpy, EGLSurface surface ) 33 EGLBoolean eglCopyBuffers ( EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target )
|
/external/deqp/modules/egl/ |
teglQuerySurfaceTests.cpp | 21 * \brief Surface query tests. 64 static void logSurfaceAttributes (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface, const EGLint* attributes, int numAttribs) 67 logSurfaceAttribute(log, attributes[ndx], eglu::querySurfaceInt(egl, display, surface, attributes[ndx])); 70 static void logCommonSurfaceAttributes (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface) 87 logSurfaceAttributes(log, egl, display, surface, attributes, DE_LENGTH_OF_ARRAY(attributes)); 90 static void logPbufferSurfaceAttributes (tcu::TestLog& log, const Library& egl, EGLDisplay display, EGLSurface surface) 101 logSurfaceAttributes(log, egl, display, surface, attributes, DE_LENGTH_OF_ARRAY(attributes)); 109 void checkCommonAttributes (EGLDisplay display, EGLSurface surface, const ConfigInfo& info); 110 void checkNonPbufferAttributes (EGLDisplay display, EGLSurface surface); 118 void QuerySurfaceCase::checkCommonAttributes (EGLDisplay display, EGLSurface surface, const ConfigInfo& info [all...] |
/external/mesa3d/src/gallium/drivers/ilo/core/ |
ilo_state_surface.c | 44 * "All of the remaining fields in surface state are ignored for null 50 * - Surface Format must be R8G8B8A8_UNORM." 54 * "If Surface Type is SURFTYPE_NULL, this field (Tiled Surface) must 57 * Note that we ignore the first exception for all surface types. 63 STATIC_ASSERT(ARRAY_SIZE(surf->surface) >= 6); 64 surf->surface[0] = dw0; 65 surf->surface[1] = 0; 66 surf->surface[2] = 0; 67 surf->surface[3] = dw3 [all...] |
/external/skia/experimental/c-api-example/ |
skia-c-example.c | 25 static void emit_png(const char* path, sk_surface_t* surface) { 26 sk_image_t* image = sk_surface_new_image_snapshot(surface); 75 sk_surface_t* surface = make_surface(640, 480); local 76 sk_canvas_t* canvas = sk_surface_get_canvas(surface); 78 emit_png("skia-c-example.png", surface); 79 sk_surface_unref(surface);
|
/external/skia/tests/ |
CTest.cpp | 18 sk_surface_t* surface = sk_surface_new_raster(&info, nullptr); local 19 sk_canvas_t* canvas = sk_surface_get_canvas(surface); 52 sk_surface_unref(surface); 64 sk_surface_t* surface = sk_surface_new_raster_direct(&info, pixel, sizeof(uint32_t), local 68 sk_canvas_t* canvas = sk_surface_get_canvas(surface); 82 sk_surface_unref(surface);
|
/external/skqp/experimental/c-api-example/ |
skia-c-example.c | 25 static void emit_png(const char* path, sk_surface_t* surface) { 26 sk_image_t* image = sk_surface_new_image_snapshot(surface); 75 sk_surface_t* surface = make_surface(640, 480); local 76 sk_canvas_t* canvas = sk_surface_get_canvas(surface); 78 emit_png("skia-c-example.png", surface); 79 sk_surface_unref(surface);
|