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

Unified Diff: cc/test/hybrid_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: Fix nits Created 6 years, 9 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
« no previous file with comments | « cc/test/gpu_rasterization_settings.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/hybrid_rasterization_settings.h
diff --git a/cc/test/hybrid_rasterization_settings.h b/cc/test/hybrid_rasterization_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..f99bfd2efe605fe463481447ac17885223a361f3
--- /dev/null
+++ b/cc/test/hybrid_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_HYBRID_RASTERIZATION_SETTINGS_H_
+#define CC_TEST_HYBRID_RASTERIZATION_SETTINGS_H_
+
+#include "cc/trees/layer_tree_settings.h"
+
+namespace cc {
+
+class HybridRasterizationSettings : public LayerTreeSettings {
+ public:
+ HybridRasterizationSettings() {
+ impl_side_painting = true;
+ rasterization_site = HybridRasterization;
+ }
+};
+
+} // namespace cc
+
+#endif // CC_TEST_HYBRID_RASTERIZATION_SETTINGS_H_
« no previous file with comments | « cc/test/gpu_rasterization_settings.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698