summaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorhendrikw <hendrikw@chromium.org>2015-01-06 12:08:47 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-06 20:09:57 +0000
commitf4b2f4af8de44ba8183c53f63f4387b7bd9904f5 (patch)
tree8846269fc288a36970e2a14093a21f39da9ca649 /cc
parenta51ad4b0672985d2404eef75c281a69225197b11 (diff)
downloadchromium_src-f4b2f4af8de44ba8183c53f63f4387b7bd9904f5.zip
chromium_src-f4b2f4af8de44ba8183c53f63f4387b7bd9904f5.tar.gz
chromium_src-f4b2f4af8de44ba8183c53f63f4387b7bd9904f5.tar.bz2
cc: ensure we initialize disable_lcd_text_
I added a test that executed code on an uninited variable. This existed before, but wasn't being hit before. BUG=446540 Review URL: https://codereview.chromium.org/808573006 Cr-Commit-Position: refs/heads/master@{#310123}
Diffstat (limited to 'cc')
-rw-r--r--cc/test/fake_picture_layer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/cc/test/fake_picture_layer.cc b/cc/test/fake_picture_layer.cc
index a475667..c2e7dab 100644
--- a/cc/test/fake_picture_layer.cc
+++ b/cc/test/fake_picture_layer.cc
@@ -25,7 +25,8 @@ FakePictureLayer::FakePictureLayer(ContentLayerClient* client,
update_count_(0),
push_properties_count_(0),
output_surface_created_count_(0),
- always_update_resources_(false) {
+ always_update_resources_(false),
+ disable_lcd_text_(false) {
SetBounds(gfx::Size(1, 1));
SetIsDrawable(true);
}