From 24fb8e2cce1bb9b169555bdda798b419b134debe Mon Sep 17 00:00:00 2001 From: "reed@google.com" Date: Mon, 11 Apr 2011 19:42:50 +0000 Subject: [PATCH] mark viewport APIs as deprecated git-svn-id: http://skia.googlecode.com/svn/trunk@1108 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkCanvas.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 2dbf207..39fd998 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -78,12 +78,16 @@ public: /** If the Device supports GL viewports, return true and set size (if not null) to the size of the viewport. If it is not supported, ignore size and return false. + + DEPRECATED: the gpu-device backend takes care of managing the viewport */ virtual bool getViewport(SkIPoint* size) const; /** If the Device supports GL viewports, return true and set the viewport to the specified x and y dimensions. If it is not supported, ignore x and y and return false. + + DEPRECATED: the gpu-device backend takes care of managing the viewport */ virtual bool setViewport(int x, int y); -- 2.7.4