diff options
author | Romain Guy <romainguy@google.com> | 2011-01-26 13:43:01 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2011-01-26 13:43:01 -0800 |
commit | 2b1847ea60650a9f68372abe860415f18b55081d (patch) | |
tree | 1ec502a48a720f8167240c6563af32f235a9bffb /graphics/java | |
parent | d30b36d3cdccc7854dedf5e3c020d2f4a8afa7b8 (diff) | |
download | frameworks_base-2b1847ea60650a9f68372abe860415f18b55081d.zip frameworks_base-2b1847ea60650a9f68372abe860415f18b55081d.tar.gz frameworks_base-2b1847ea60650a9f68372abe860415f18b55081d.tar.bz2 |
Remove unused API
Change-Id: I1714fd82a64b752f0350ef4ef9179ce19e089c6a
Diffstat (limited to 'graphics/java')
-rw-r--r-- | graphics/java/android/graphics/Canvas.java | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/graphics/java/android/graphics/Canvas.java b/graphics/java/android/graphics/Canvas.java index 00b06e0..c1deed3 100644 --- a/graphics/java/android/graphics/Canvas.java +++ b/graphics/java/android/graphics/Canvas.java @@ -1596,51 +1596,6 @@ public class Canvas { } /** - * <p>Acquires the Canvas context. After invoking this method, the Canvas - * context can be modified by the caller. For instance, if you acquire - * the context of an OpenGL Canvas you can reset the GL viewport, scissor, - * etc.</p> - * - * <p>A call to {@link #acquireContext()} should aways be followed by - * a call to {@link #releaseContext()}, preferrably using a try block:</p> - * - * <pre> - * try { - * if (canvas.acquireContext()) { - * // Use the canvas and/or its context - * } - * } finally { - * canvas.releaseContext(); - * } - * </pre> - * - * <p>Acquiring the context can be an expensive operation and should not - * be done unless absolutely necessary.</p> - * - * <p>Applications should never invoke this method directly.</p> - * - * @return True if the context could be acquired successfully, false - * otherwise (if the context is already acquired for instance.) - * - * @see #releaseContext() - * - * @hide - */ - public boolean acquireContext() { - return false; - } - - /** - * <p>Release the context acquired with {@link #acquireContext()}.</p> - * - * @see #acquireContext() - * - * @hide - */ - public void releaseContext() { - } - - /** * Free up as much memory as possible from private caches (e.g. fonts, images) * * @hide |