summaryrefslogtreecommitdiffstats
path: root/cc/test/pixel_test_software_output_device.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cc/test/pixel_test_software_output_device.cc')
-rw-r--r--cc/test/pixel_test_software_output_device.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/cc/test/pixel_test_software_output_device.cc b/cc/test/pixel_test_software_output_device.cc
new file mode 100644
index 0000000..d4f0b88
--- /dev/null
+++ b/cc/test/pixel_test_software_output_device.cc
@@ -0,0 +1,15 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/test/pixel_test_software_output_device.h"
+
+namespace cc {
+
+void PixelTestSoftwareOutputDevice::Resize(gfx::Size size) {
+ gfx::Size expanded_size(size.width() + surface_expansion_size_.width(),
+ size.height() + surface_expansion_size_.height());
+ SoftwareOutputDevice::Resize(expanded_size);
+}
+
+} // namespace cc