Lines Matching defs:surface

218      * Initializes the hardware renderer for the specified surface.
220 * @param surface The surface to hardware accelerate
224 abstract boolean initialize(Surface surface) throws OutOfResourcesException;
227 * Updates the hardware renderer for the specified surface.
229 * @param surface The surface to hardware accelerate
231 abstract void updateSurface(Surface surface) throws OutOfResourcesException;
234 * Stops any rendering into the surface. Use this if it is unclear whether
235 * or not the surface used by the HardwareRenderer will be changing. It
236 * Suspends any rendering into the surface, but will not do any destruction
238 abstract boolean pauseSurface(Surface surface);
252 * @param surface The surface to hardware accelerate
254 abstract void invalidate(Surface surface);
257 * Detaches the layer's surface texture from the GL context and releases
263 * Gets the current width of the surface. This is the width that the surface
266 * @return the current width of the surface
271 * Gets the current height of the surface. This is the height that the surface
274 * @return the current width of the surface
369 * Initializes the hardware renderer for the specified surface and setup the
375 * @param width The width of the drawing surface.
376 * @param height The height of the drawing surface.
377 * @param surface The surface to hardware accelerate
378 * @param surfaceInsets The drawing surface insets to apply
380 * @return true if the surface was initialized, false otherwise. Returning
381 * false might mean that the surface was already initialized.
383 boolean initializeIfNeeded(int width, int height, Surface surface, Rect surfaceInsets)
388 if (initialize(surface)) {
400 * @param width The width of the drawing surface.
401 * @param height The height of the drawing surface.
402 * @param surfaceInsets The drawing surface insets to apply
421 * @param translucent True if the surface is translucent, false otherwise