Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Unified Diff: cc/test/pixel_test_software_output_device.h

Issue 1531403002: Revert "Delete CC." (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | cc/test/pixel_test_software_output_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test_software_output_device.h
diff --git a/cc/test/pixel_test_software_output_device.h b/cc/test/pixel_test_software_output_device.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3395380a5097cbaacbe7bde89fb31eacaeb362e
--- /dev/null
+++ b/cc/test/pixel_test_software_output_device.h
@@ -0,0 +1,26 @@
+// 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.
+
+#ifndef CC_TEST_PIXEL_TEST_SOFTWARE_OUTPUT_DEVICE_H_
+#define CC_TEST_PIXEL_TEST_SOFTWARE_OUTPUT_DEVICE_H_
+
+#include "cc/output/software_output_device.h"
+
+namespace cc {
+
+class PixelTestSoftwareOutputDevice : public SoftwareOutputDevice {
+ public:
+ void Resize(const gfx::Size& pixel_size, float scale_factor) override;
+
+ void set_surface_expansion_size(const gfx::Size& surface_expansion_size) {
+ surface_expansion_size_ = surface_expansion_size;
+ }
+
+ private:
+ gfx::Size surface_expansion_size_;
+};
+
+} // namespace cc
+
+#endif // CC_TEST_PIXEL_TEST_SOFTWARE_OUTPUT_DEVICE_H_
« no previous file with comments | « cc/test/pixel_test_output_surface.cc ('k') | cc/test/pixel_test_software_output_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698