From 7775fd5779e632d6f5724e0e5d39ed347cf965b0 Mon Sep 17 00:00:00 2001 From: "sugoi@google.com" Date: Wed, 21 Nov 2012 15:47:04 +0000 Subject: Deferred canvas can now be flushed if an image is beyond a certain size to avoid a costly image copy. BUG=http://code.google.com/p/chromium/issues/detail?id=137924 TEST=TestDeferredCanvasBitmapSizeThreshold unit test Review URL: https://codereview.appspot.com/6852071 git-svn-id: http://skia.googlecode.com/svn/trunk@6527 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/config/SkUserConfig.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/config') diff --git a/include/config/SkUserConfig.h b/include/config/SkUserConfig.h index 79fdc7a2a4..ae5865ab37 100644 --- a/include/config/SkUserConfig.h +++ b/include/config/SkUserConfig.h @@ -199,4 +199,12 @@ backend. Defaults to 1 (build the GPU code). */ //#define SK_SUPPORT_GPU 1 + +/* Defines the maximum size allowed for a given image to be rendered using the + deferred canvas. If the image is larger than this threshold, the image + is considered too large and the copy done by the deferred canvas too + expensive, so an image of that size would instead be drawn immediately. +*/ +//#define SK_DEFERRED_CANVAS_BITMAP_SIZE_THRESHOLD 1048576 + #endif -- cgit v1.2.3