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

Unified Diff: cc/test/gpu_rasterization_settings.h

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 10 months 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
Index: cc/test/gpu_rasterization_settings.h
diff --git a/cc/test/gpu_rasterization_settings.h b/cc/test/gpu_rasterization_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..97c5710742670fad504c8d4a9d863a6f772bba71
--- /dev/null
+++ b/cc/test/gpu_rasterization_settings.h
@@ -0,0 +1,22 @@
+// Copyright 2014 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_GPU_RASTERIZATION_SETTINGS_H_
+#define CC_TEST_GPU_RASTERIZATION_SETTINGS_H_
+
+#include "cc/trees/layer_tree_settings.h"
+
+namespace cc {
+
+class GpuRasterizationSettings : public LayerTreeSettings {
+ public:
+ GpuRasterizationSettings() {
+ impl_side_painting = true;
+ rasterization_site = GpuRasterization;
+ }
+};
+
+} // namespace cc
+
+#endif // CC_TEST_GPU_RASTERIZATION_SETTINGS_H_

Powered by Google App Engine
This is Rietveld 408576698