Lines Matching refs:surface

222      * Initializes the hardware renderer for the specified surface.
224 * @param surface The surface to hardware accelerate
228 abstract boolean initialize(Surface surface) throws Surface.OutOfResourcesException;
231 * Updates the hardware renderer for the specified surface.
233 * @param surface The surface to hardware accelerate
235 abstract void updateSurface(Surface surface) throws Surface.OutOfResourcesException;
256 * @param surface The surface to hardware accelerate
258 abstract void invalidate(Surface surface);
282 * size of the target surface changes or when the surface is first created.
284 * @param width Width of the drawing surface.
285 * @param height Height of the drawing surface.
290 * Gets the current width of the surface. This is the width that the surface
293 * @return the current width of the surface
298 * Gets the current height of the surface. This is the height that the surface
301 * @return the current width of the surface
348 * Preserves the back buffer of the current surface after a buffer swap.
350 * surface to EGL_BUFFER_PRESERVED. Calling this method requires an EGL
363 * Indicates whether the current surface preserves its back buffer
366 * @return True, if the surface's EGL_SWAP_BEHAVIOR is EGL_BUFFER_PRESERVED,
501 * Initializes the hardware renderer for the specified surface and setup the
507 * @param width The width of the drawing surface.
508 * @param height The height of the drawing surface.
509 * @param surface The surface to hardware accelerate
511 * @return true if the surface was initialized, false otherwise. Returning
512 * false might mean that the surface was already initialized.
514 boolean initializeIfNeeded(int width, int height, Surface surface)
519 if (initialize(surface)) {
532 * @param translucent True if the surface is translucent, false otherwise
784 boolean initialize(Surface surface) throws Surface.OutOfResourcesException {
787 mGl = createEglSurface(surface);
813 void updateSurface(Surface surface) throws Surface.OutOfResourcesException {
815 createEglSurface(surface);
941 GL createEglSurface(Surface surface) throws Surface.OutOfResourcesException {
957 // In case we need to destroy an existing surface
960 // Create an EGL surface we can render into.
961 if (!createSurface(surface)) {
1031 void invalidate(Surface surface) {
1042 if (surface.isValid()) {
1043 if (!createSurface(surface)) {
1055 private boolean createSurface(Surface surface) {
1056 mEglSurface = sEgl.eglCreateWindowSurface(sEglDisplay, sEglConfig, surface, null);
1157 // We had to change the current surface and/or context, redraw everything