Searched refs:saveLayer (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DLayersActivity.java55 int count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint,
65 count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint,
82 count = canvas.saveLayer(50.0f, 25.0f, 150.0f, 75.0f, mLayerPaint,
99 count = canvas.saveLayer(50.0f, 25.0f, 150.0f, 75.0f, mLayerPaint,
H A DNewLayersActivity.java65 int count = canvas.saveLayer(0.0f, 0.0f, 200.0f, 100.0f, mLayerPaint, saveFlags);
H A DQuickRejectActivity.java73 count = canvas.saveLayer(0, 0, 10, 10, mBitmapPaint, Canvas.ALL_SAVE_FLAG);
74 Log.d("OpenGLRenderer", "count after saveLayer=" + count);
76 Log.d("OpenGLRenderer", "getSaveCount after saveLayer=" + count);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java55 public int saveLayer(RectF bounds, Paint paint, int saveFlags) { method in class:NopCanvas
60 public int saveLayer(RectF bounds, Paint paint) { method in class:NopCanvas
65 public int saveLayer(float left, float top, float right, float bottom, Paint paint, method in class:NopCanvas
71 public int saveLayer(float left, float top, float right, float bottom, Paint paint) { method in class:NopCanvas
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java346 * omit this flag for any call to <code>saveLayer()</code> and
356 * call to <code>saveLayer()</code> and <code>saveLayerAlpha()</code>
425 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint, @Saveflags int saveFlags) { method in class:Canvas
429 return saveLayer(bounds.left, bounds.top, bounds.right, bounds.bottom, paint, saveFlags);
433 * Convenience for saveLayer(bounds, paint, {@link #ALL_SAVE_FLAG})
435 public int saveLayer(@Nullable RectF bounds, @Nullable Paint paint) { method in class:Canvas
436 return saveLayer(bounds, paint, ALL_SAVE_FLAG);
440 * Helper version of saveLayer() that takes 4 values rather than a RectF.
442 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint, method in class:Canvas
450 * Convenience for saveLayer(lef
452 public int saveLayer(float left, float top, float right, float bottom, @Nullable Paint paint) { method in class:Canvas
[all...]
/frameworks/base/libs/hwui/
H A DOpenGLRenderer.h155 virtual int saveLayer(float left, float top, float right, float bottom, function in class:android::uirenderer::OpenGLRenderer
157 return saveLayer(left, top, right, bottom, paint, flags, nullptr);
160 // Specialized saveLayer implementation, which will pass the convexMask to an FBO layer, if
162 int saveLayer(float left, float top, float right, float bottom,
741 // List of rectangles to clear after saveLayer() is invoked
H A DDisplayListCanvas.h133 virtual int saveLayer(float left, float top, float right, float bottom, const SkPaint* paint,
139 return saveLayer(left, top, right, bottom, &paint, flags);
H A DRecordingCanvas.h110 virtual int saveLayer(float left, float top, float right, float bottom, const SkPaint* paint,
116 return saveLayer(left, top, right, bottom, &paint, flags);
H A DSkiaCanvas.cpp90 virtual int saveLayer(float left, float top, float right, float bottom,
344 int SkiaCanvas::saveLayer(float left, float top, float right, float bottom, function in class:android::SkiaCanvas
349 int count = mCanvas->saveLayer(rec);
361 return this->saveLayer(left, top, right, bottom, alphaPaint.getMaybeNull(),
H A DSkiaCanvasProxy.cpp186 mCanvas->saveLayer(rect.fLeft, rect.fTop, rect.fRight, rect.fBottom, saveLayerRec.fPaint,
H A DDisplayListCanvas.cpp130 int DisplayListCanvas::saveLayer(float left, float top, float right, float bottom, function in class:android::uirenderer::DisplayListCanvas
H A DRecordingCanvas.cpp118 int RecordingCanvas::saveLayer(float left, float top, float right, float bottom, function in class:android::uirenderer::RecordingCanvas
H A DDisplayListOp.h341 // NOTE: don't bother with actual saveLayer, instead issuing it at flush time
345 // NOTE: don't issue full saveLayer, since that has side effects/is costly. instead just
352 renderer.saveLayer(mArea.left, mArea.top, mArea.right, mArea.bottom,
H A DOpenGLRenderer.cpp472 int OpenGLRenderer::saveLayer(float left, float top, float right, float bottom, function in class:android::uirenderer::OpenGLRenderer
837 * by saveLayer's restore
1145 // (Note: saveLayer/restore use colorFilter and alpha, so we just save restore everything)
/frameworks/base/libs/hwui/hwui/
H A DCanvas.h141 virtual int saveLayer(float left, float top, float right, float bottom,
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DCanvas_Delegate.java217 return canvasDelegate.saveLayer(new RectF(l, t, r, b),
1019 * layers involved (see {@link #saveLayer(RectF, Paint_Delegate, int)}.
1039 * layers involved (see {@link #saveLayer(RectF, Paint_Delegate, int)}.
1114 return saveLayer(rect, paint, saveFlags);
1117 private int saveLayer(RectF rect, Paint_Delegate paint, int saveFlags) { method in class:Canvas_Delegate
1121 mSnapshot = mSnapshot.saveLayer(rect, paint, saveFlags);
/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp92 static jint saveLayer(JNIEnv* env, jobject, jlong canvasHandle, jfloat l, jfloat t, function in namespace:android::CanvasJNI
96 return static_cast<jint>(get_canvas(canvasHandle)->saveLayer(l, t, r, b, paint, flags));
584 {"native_saveLayer","!(JFFFFJI)I", (void*) CanvasJNI::saveLayer},
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java56 * Handling of layers (created with {@link Canvas#saveLayer(RectF, Paint, int)}) is handled through
75 /** a local layer created with {@link Canvas#saveLayer(RectF, Paint, int)}.
237 * This is the equivalent of {@link Canvas#saveLayer(RectF, Paint, int)}
245 * @see Canvas#saveLayer(RectF, Paint, int)
247 public GcSnapshot saveLayer(RectF layerBounds, Paint_Delegate paint, int flags) { method in class:GcSnapshot
579 // of saveLayer(), but that doesn't mean there's no layer.
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DBackgroundManager.java345 canvas.saveLayer(0, 0, canvas.getWidth(), canvas.getHeight(),
358 * saveLayer/restore draw path.
/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java169 private Paint mLayerPaint; // internal, used if we use saveLayer()
728 canvas.saveLayer(mRect.left - rad, mRect.top - rad,
/frameworks/base/core/java/android/view/
H A DView.java12335 * <p>The current implementation of the saveLayer and saveLayerAlpha methods in {@link Canvas}
17273 canvas.saveLayer(left, top, right, top + length, null, flags);
17277 canvas.saveLayer(left, bottom - length, right, bottom, null, flags);
17281 canvas.saveLayer(left, top, left + length, bottom, null, flags);
17285 canvas.saveLayer(right - length, top, right, bottom, null, flags);

Completed in 5087 milliseconds