Searched defs:saveCount (Results 1 - 12 of 12) sorted by path

/frameworks/base/core/jni/
H A Dandroid_graphics_Canvas.cpp111 static void restoreToCount(jlong canvasHandle, jint saveCount) { argument
113 canvas->restoreToCount(saveCount);
/frameworks/base/graphics/java/android/graphics/
H A DCanvas.java589 * count reached saveCount. It is an error for saveCount to be less than 1.
598 * @param saveCount The save level to restore to.
600 public void restoreToCount(int saveCount) { argument
601 if (saveCount < 1) {
608 saveCount = 1;
610 nRestoreToCount(mNativeCanvasWrapper, saveCount);
1262 private static native void nRestoreToCount(long canvasHandle, int saveCount); argument
/frameworks/base/libs/hwui/
H A DCanvasState.cpp152 void CanvasState::restoreToCount(int saveCount) { argument
153 if (saveCount < 1) saveCount = 1;
155 while (mSaveCount > saveCount) {
H A DRecordingCanvas.cpp114 void RecordingCanvas::restoreToCount(int saveCount) { argument
115 mState.restoreToCount(saveCount);
H A DSkiaCanvas.h80 virtual void restoreToCount(int saveCount) override;
171 int saveCount; member in struct:android::SkiaCanvas::SaveRec
H A DVectorDrawable.cpp429 int saveCount = outCanvas->save(SaveFlags::MatrixClip); local
446 outCanvas->restoreToCount(saveCount);
/frameworks/base/libs/hwui/pipeline/skia/
H A DLayerDrawable.cpp35 int saveCount = -1; local
37 saveCount = canvas->save();
71 if (saveCount >= 0) {
72 canvas->restoreToCount(saveCount);
H A DSkiaPipeline.cpp101 int saveCount = layerCanvas->save(); local
102 SkASSERT(saveCount == 1);
121 layerCanvas->restoreToCount(saveCount);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBaseCanvas_Delegate.java745 * Restores the {@link GcSnapshot} to <var>saveCount</var>
746 * @param saveCount the saveCount
748 protected void restoreTo(int saveCount) { argument
749 mSnapshot = mSnapshot.restoreTo(saveCount);
H A DCanvas_Delegate.java225 public static void nRestoreToCount(long nativeCanvas, int saveCount) { argument
233 canvasDelegate.restoreTo(saveCount);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/graphics/
H A DNopCanvas.java110 public void restoreToCount(int saveCount) { argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DGcSnapshot.java372 * Restores the {@link GcSnapshot} to <var>saveCount</var>.
373 * @param saveCount the saveCount or -1 to only restore 1.
377 public GcSnapshot restoreTo(int saveCount) { argument
378 return doRestoreTo(size(), saveCount);
545 private GcSnapshot doRestoreTo(int size, int saveCount) { argument
546 if (size <= saveCount) {
553 if (size == saveCount + 1) { // this was the only one that needed restore.
556 return previous.doRestoreTo(size - 1, saveCount);

Completed in 319 milliseconds