/frameworks/base/libs/hwui/ |
H A D | LayerCache.cpp | 38 INIT_LOGD(" Setting layer cache size to %sMB", property); 41 INIT_LOGD(" Using default layer cache size of %.2fMB", DEFAULT_LAYER_CACHE_SIZE); 70 void LayerCache::deleteLayer(Layer* layer) { argument 71 if (layer) { 72 GLuint fbo = layer->getFbo(); 73 LAYER_LOGD("Destroying layer %dx%d, fbo %d", layer->getWidth(), layer->getHeight(), fbo); 75 mSize -= layer->getWidth() * layer 93 Layer* layer = NULL; local 136 resize(Layer* layer, const uint32_t width, const uint32_t height) argument 161 put(Layer* layer) argument [all...] |
H A D | LayerRenderer.cpp | 34 LayerRenderer::LayerRenderer(Layer* layer): mLayer(layer) { argument 41 LAYER_RENDERER_LOGD("Rendering into layer, fbo = %d", mLayer->getFbo()); 45 const float width = mLayer->layer.getWidth(); 46 const float height = mLayer->layer.getHeight(); 71 LAYER_RENDERER_LOGD("Finished rendering into layer, fbo = %d", mLayer->getFbo()); 146 const float height = mLayer->layer.getHeight(); 183 LAYER_RENDERER_LOGD("Requesting new render layer %dx%d", width, height); 193 Layer* layer = caches.layerCache.get(width, height); local 194 if (!layer) { 245 resizeLayer(Layer* layer, uint32_t width, uint32_t height) argument 266 Layer* layer = new Layer(0, 0); local 284 updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, bool isOpaque, GLenum renderTarget, float* transform) argument 303 destroyLayer(Layer* layer) argument 329 destroyLayerDeferred(Layer* layer) argument 337 flushLayer(Layer* layer) argument 357 copyLayer(Layer* layer, SkBitmap* bitmap) argument [all...] |
H A D | LayerCache.h | 49 * Returns a layer large enough for the specified dimensions. If no suitable 50 * layer can be found, a new one is created and returned. If creating a new 51 * layer fails, NULL is returned. 53 * When a layer is obtained from the cache, it is removed and the total 56 * @param width The desired width of the layer 57 * @param width The desired height of the layer 62 * Adds the layer to the cache. The layer will not be added if there is 63 * not enough space available. Adding a layer can cause other layers to 66 * @param layer Th 118 LayerEntry(Layer* layer) argument [all...] |
H A D | LayerRenderer.h | 47 ANDROID_API LayerRenderer(Layer* layer); 59 ANDROID_API static bool resizeLayer(Layer* layer, uint32_t width, uint32_t height); 60 ANDROID_API static void updateTextureLayer(Layer* layer, uint32_t width, uint32_t height, 62 ANDROID_API static void destroyLayer(Layer* layer); 63 ANDROID_API static void destroyLayerDeferred(Layer* layer); 64 ANDROID_API static void flushLayer(Layer* layer); 65 ANDROID_API static bool copyLayer(Layer* layer, SkBitmap* bitmap);
|
H A D | OpenGLRenderer.cpp | 463 * programs (for instance.) When a layer is created, previously created layers 465 * layer is created and a shape intersecting the bounds of the layers and the 466 * framebuffer is draw, the shape will be drawn on both (unless the layer was 469 * A way to implement layers is to create an FBO for each layer, backed by an RGBA 479 * general case. FBOs are used, as an optimization, when the "clip to layer" flag 484 * a layer is created, only a texture is created, not an FBO. The content of the 485 * frame buffer contained within the layer's bounds is copied into this texture 486 * using glCopyTexImage2D(). The layer's region is then cleared(1) in the frame 490 * To compose the layers back onto the frame buffer, each layer texture 497 * An empty quad is drawn over the layer' 554 Layer* layer = mCaches.layerCache.get(bounds.getWidth(), bounds.getHeight()); local 594 createFboLayer(Layer* layer, Rect& bounds, sp<Snapshot> snapshot, GLuint previousFbo) argument 687 Layer* layer = current->layer; local 738 drawTextureLayer(Layer* layer, const Rect& rect) argument 789 composeLayerRect(Layer* layer, const Rect& rect, bool swap) argument 827 composeLayerRegion(Layer* layer, const Rect& rect) argument 2539 drawLayer(Layer* layer, float x, float y, SkPaint* paint) argument [all...] |
H A D | Layer.h | 45 * A layer has dimensions and is backed by an OpenGL texture or FBO. 69 * Sets this layer's region to a rectangle. Computes the appropriate 79 const float height = layer.getHeight(); 84 regionRect.translate(layer.left, layer.top); 227 * Bounds of the layer. 229 Rect layer; member in struct:android::uirenderer::Layer 231 * Texture coordinates of the layer. 236 * Dirty region indicating what parts of the layer 247 * If the layer ca [all...] |
H A D | Caches.h | 142 * Can be used to delete a layer from a non EGL thread. 144 void deleteLayerDeferred(Layer* layer); 149 void deleteDisplayListDeferred(DisplayList* layer);
|
H A D | Caches.cpp | 213 Layer* layer = mLayerGarbage.itemAt(i); local 214 LayerRenderer::destroyLayer(layer); 226 void Caches::deleteLayerDeferred(Layer* layer) { argument 228 mLayerGarbage.push(layer);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | LayerRasterizer.cpp | 10 static void addLayer(JNIEnv* env, jobject, SkLayerRasterizer* layer, const SkPaint* paint, float dx, float dy) { argument 11 SkASSERT(layer); 13 layer->addLayer(*paint, SkFloatToScalar(dx), SkFloatToScalar(dy));
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcColorEquiv.cpp | 356 hwc_layer_t *layer = &list->hwLayers[0]; local 357 layer->handle = refFrame->handle; 358 layer->blending = HWC_BLENDING_NONE; 359 layer->sourceCrop.left = 0; 360 layer->sourceCrop.top = 0; 361 layer->sourceCrop.right = width; 362 layer->sourceCrop.bottom = refHeight; 363 layer->displayFrame.left = 0; 364 layer->displayFrame.top = 0; 365 layer [all...] |
H A D | hwcStress.cpp | 46 * be made with each of the layer handles changed to a different 423 // Any transform tends to create a layer that the hardware 431 hwc_layer_t *layer = &list->hwLayers[n1]; local 432 layer->handle = gBuf->handle; 434 layer->blending = blendingOps[testRandMod(NUMA(blendingOps))]; 435 layer->flags = (testRandFract() > rareRatio) ? 0 438 layer->transform = (noTransform || testRandFract() > rareRatio) ? 0 441 layer->sourceCrop.left = testRandMod(gBuf->getWidth()); 442 layer->sourceCrop.top = testRandMod(gBuf->getHeight()); 443 layer 500 hwc_layer_t *layer = &list->hwLayers[n1]; local [all...] |
H A D | hwcTestLib.cpp | 399 * Dynamically creates layer list with numLayers worth 425 // Display the settings of the layer list pointed to by list 432 for (unsigned int layer = 0; layer < list->numHwLayers; layer++) { 433 testPrintI(" layer %u compositionType: %#x%s%s", layer, 434 list->hwLayers[layer].compositionType, 435 (list->hwLayers[layer].compositionType == HWC_FRAMEBUFFER) 437 (list->hwLayers[layer] [all...] |
H A D | hwcRects.cpp | 317 hwc_layer_t *layer = &list->hwLayers[0]; local 319 it != rectangle.end(); ++it, ++layer) { 320 layer->handle = it->texture->handle; 321 layer->blending = it->blend; 322 layer->transform = it->transform; 323 layer->sourceCrop = it->sourceCrop; 324 layer->displayFrame = it->displayFrame; 326 layer->visibleRegionScreen.numRects = 1; 327 layer->visibleRegionScreen.rects = &layer [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
H A D | DimSurface.java | 60 void show(int dw, int dh, int layer, int color) { argument 63 dw + "x" + dh + " layer=" + layer + ")"); 70 mDimSurface.setLayer(layer); 76 || mLayer != layer) { 78 dw + "x" + dh + " layer=" + layer + ")"); 81 mLayer = layer; 84 mDimSurface.setLayer(layer);
|
H A D | BlackFrame.java | 35 final int layer; field in class:BlackFrame.BlackSurface 38 BlackSurface(SurfaceSession session, int layer, int l, int t, int r, int b) argument 42 this.layer = layer; 54 surface.setLayer(layer); 58 " BLACK " + surface + ": CREATE layer=" + layer); 106 int layer) throws Surface.OutOfResourcesException { 113 mBlackSurfaces[0] = new BlackSurface(session, layer, 117 mBlackSurfaces[1] = new BlackSurface(session, layer, 105 BlackFrame(SurfaceSession session, Rect outer, Rect inner, int layer) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | GcSnapshot.java | 56 * for each layer. Doing a save() will duplicate this list so that each graphics2D object 72 // local layer data 73 /** a local layer created with {@link Canvas#saveLayer(RectF, Paint, int)}. 74 * If this is null, this does not mean there's no layer, just that the snapshot is not the 75 * one that created the layer. 87 * Class containing information about a layer. 89 * This contains graphics, bitmap and layer information. 95 /** the flags that were used to configure the layer. This is never changed, and passed 98 /** the original content of the layer when the next object was created. This is not 99 * passed in {@link #makeCopy()} and instead is recreated when a new layer i 603 drawInLayer(Layer layer, Drawable drawable, Paint_Delegate paint, boolean compositeOnly, boolean forceSrcMode) argument [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.cpp | 329 // Check the visible layer list for the ISurface 333 const sp<LayerBase>& layer(currentLayers[i]); 334 sp<LayerBaseClient> lbc(layer->getLayerBaseClient()); 352 const sp<LayerBase>& layer(mLayerPurgatory.itemAt(i)); 353 sp<LayerBaseClient> lbc(layer->getLayerBaseClient()); 519 const sp<LayerBase>& layer = currentLayers[i]; local 520 uint32_t trFlags = layer->getTransactionFlags(eTransactionNeeded); 523 const uint32_t flags = layer->doTransaction(0); 568 const sp<LayerBase>& layer(previousLayers[i]); 569 if (currentLayers.indexOf( layer ) < 598 const sp<LayerBase>& layer = currentLayers[i]; local [all...] |
H A D | SurfaceFlinger.h | 69 size_t attachLayer(const sp<LayerBaseClient>& layer); 70 void detachLayer(const LayerBaseClient* layer); 210 status_t removeLayer(const sp<LayerBase>& layer); 211 status_t addLayer(const sp<LayerBase>& layer); 212 status_t invalidateLayerVisibility(const sp<LayerBase>& layer); 263 status_t destroySurface(const wp<LayerBaseClient>& layer); 330 status_t addLayer_l(const sp<LayerBase>& layer); 331 status_t removeLayer_l(const sp<LayerBase>& layer); 332 status_t purgatorizeLayer_l(const sp<LayerBase>& layer);
|
H A D | Layer.cpp | 90 FrameQueuedListener(Layer* layer) : mLayer(layer) { } argument 129 // called with SurfaceFlinger::mStateLock as soon as the layer is entered 163 const sp<Layer>& layer) 164 : LayerCleaner(flinger, layer), mOwner(layer) { } 278 * 3) layer orientation (screen orientation) 306 // this can happen if the client never drew into this layer yet, 335 const sp<LayerBase>& layer(drawingLayers[i]); 336 if (layer 162 BSurface(const sp<SurfaceFlinger>& flinger, const sp<Layer>& layer) argument [all...] |
/frameworks/base/core/java/android/view/ |
H A D | HardwareCanvas.java | 78 * Draws the specified layer onto this canvas. 80 * @param layer The layer to composite on this canvas 81 * @param x The left coordinate of the layer 82 * @param y The top coordinate of the layer 83 * @param paint The paint used to draw the layer 85 abstract void drawHardwareLayer(HardwareLayer layer, float x, float y, Paint paint); argument
|
/frameworks/base/services/java/com/android/server/input/ |
H A D | InputWindowHandle.java | 80 // Window layer. 81 public int layer; field in class:InputWindowHandle
|
/frameworks/base/core/jni/ |
H A D | android_view_GLES20Canvas.cpp | 59 * Note: OpenGLRenderer JNI layer is generated and compiled only on supported 728 jobject clazz, Layer* layer) { 729 if (layer) { 730 return new LayerRenderer(layer); 737 Layer* layer = LayerRenderer::createTextureLayer(isOpaque); local 739 if (layer) { 741 storage[0] = layer->getTexture(); 745 return layer; 750 Layer* layer = LayerRenderer::createLayer(width, height, isOpaque); local 752 if (layer) { 727 android_view_GLES20Canvas_createLayerRenderer(JNIEnv* env, jobject clazz, Layer* layer) argument 762 android_view_GLES20Canvas_resizeLayer(JNIEnv* env, jobject clazz, Layer* layer, jint width, jint height, jintArray layerInfo) argument 772 android_view_GLES20Canvas_updateTextureLayer(JNIEnv* env, jobject clazz, Layer* layer, jint width, jint height, jboolean isOpaque, jobject surface) argument 785 android_view_GLES20Canvas_updateRenderLayer(JNIEnv* env, jobject clazz, Layer* layer, OpenGLRenderer* renderer, DisplayList* displayList, jint left, jint top, jint right, jint bottom) argument 791 android_view_GLES20Canvas_setTextureLayerTransform(JNIEnv* env, jobject clazz, Layer* layer, SkMatrix* matrix) argument 797 android_view_GLES20Canvas_destroyLayer(JNIEnv* env, jobject clazz, Layer* layer) argument 801 android_view_GLES20Canvas_destroyLayerDeferred(JNIEnv* env, jobject clazz, Layer* layer) argument 806 android_view_GLES20Canvas_flushLayer(JNIEnv* env, jobject clazz, Layer* layer) argument 810 android_view_GLES20Canvas_drawLayer(JNIEnv* env, jobject clazz, OpenGLRenderer* renderer, Layer* layer, jfloat x, jfloat y, SkPaint* paint) argument 815 android_view_GLES20Canvas_copyLayer(JNIEnv* env, jobject clazz, Layer* layer, SkBitmap* bitmap) argument [all...] |
/frameworks/base/services/input/ |
H A D | SpriteController.h | 95 // The base layer for pointer sprites. 98 // The base layer for spot sprites. 116 /* Sets the layer of the sprite, relative to the system sprite overlay layer. 117 * Layer 0 is the overlay layer, > 0 appear above this layer. */ 118 virtual void setLayer(int32_t layer) = 0; 180 positionX(0), positionY(0), layer(0), alpha(1.0f), 190 int32_t layer; member in struct:android::SpriteController::SpriteState 222 virtual void setLayer(int32_t layer); [all...] |
/frameworks/native/include/gui/ |
H A D | Surface.h | 63 status_t setLayer(int32_t layer); 67 status_t show(int32_t layer = -1);
|
H A D | SurfaceComposerClient.h | 119 status_t show(SurfaceID id, int32_t layer = -1); 124 status_t setLayer(SurfaceID id, int32_t layer);
|