summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorasvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-25 17:49:35 +0000
committerasvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-25 17:49:35 +0000
commitd18e5031f989c3d6df6d899b925a0c0a6a9712ff (patch)
tree06738cbf181fb656743105be7e532a75a6acbc60 /build
parent33d22105858eb7df7ad1dd76b89490ce718877a6 (diff)
downloadchromium_src-d18e5031f989c3d6df6d899b925a0c0a6a9712ff.zip
chromium_src-d18e5031f989c3d6df6d899b925a0c0a6a9712ff.tar.gz
chromium_src-d18e5031f989c3d6df6d899b925a0c0a6a9712ff.tar.bz2
Add implementation of CanvasSkia based on RenderText.
This allows text drawing entirely through Skia, since RenderText ultimately uses Skia to draw character glyphs. This CL adds the new code, but does not yet enable it on any platforms. That will be done in later CLs. Note: Some functions, such as CanvasSkia::DrawStringWithHalo() and PixelShouldGetHalo() are taken almost verbatim from the canvas_skia_win.cc implementation. BUG=105550 TEST=none Review URL: http://codereview.chromium.org/9074005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119086 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/common.gypi8
1 files changed, 8 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi
index f3c31e1..5196242 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -262,6 +262,13 @@
# Use the WebKit compositor for ui.
'use_webkit_compositor%': 1,
+ # Specifies whether to use canvas_skia_skia.cc in place of platform
+ # specific implementations of CanvasSkia. Affects text drawing in the
+ # Chrome UI.
+ # TODO(asvitkine): Enable this on all platforms and delete this flag.
+ # http://crbug.com/105550
+ 'use_canvas_skia_skia%': 0,
+
'conditions': [
# TODO(epoger): Figure out how to set use_skia=1 for Mac outside of
# the 'conditions' clause. Initial attempts resulted in chromium and
@@ -440,6 +447,7 @@
'enable_register_protocol_handler%': '<(enable_register_protocol_handler)',
'enable_web_intents%': '<(enable_web_intents)',
'enable_plugin_installation%': '<(enable_plugin_installation)',
+ 'use_canvas_skia_skia%': '<(use_canvas_skia_skia)',
# Whether to build for Wayland display server
'use_wayland%': 0,