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

Unified Diff: cc/test/fake_layer_tree_settings.h

Issue 260963008: Fixing crash in PictureLayerImpl::MarkVisibleResourcesAsRequired when low-res tiles are disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding missed file and fixing TileManager unit test Created 6 years, 7 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/fake_layer_tree_settings.h
diff --git a/cc/test/fake_layer_tree_settings.h b/cc/test/fake_layer_tree_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..190ced8de5a9fe4d01f4a9ad25266361de19d83d
--- /dev/null
+++ b/cc/test/fake_layer_tree_settings.h
@@ -0,0 +1,28 @@
+// 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_FAKE_LAYER_TREE_SETTINGS_H_
+#define CC_TEST_FAKE_LAYER_TREE_SETTINGS_H_
+
+#include "cc/trees/layer_tree_settings.h"
+
+namespace cc {
+
+class FakeLayerTreeSettings : public LayerTreeSettings {
reveman 2014/05/12 02:30:52 why not change ImplSidePaintingSettings instead of
Sergey 2014/05/12 08:07:21 Judging from ImplSidePaintingSettings class name,
reveman 2014/05/12 15:44:04 You should probably remove ImplSidePaintingSetting
Sergey 2014/05/12 23:37:47 Agree on that, let's make some refactoring :)
Sergey 2014/05/13 05:37:44 Done.
+ public:
+ FakeLayerTreeSettings() {
+ impl_side_painting = true;
+ create_low_res_tiling = true;
+ }
+
+ FakeLayerTreeSettings(bool create_low_res_tiling_) {
+ impl_side_painting = true;
+ create_low_res_tiling = create_low_res_tiling_;
+ }
+
+};
+
+} // namespace cc
+
+#endif // CC_TEST_FAKE_LAYER_TREE_SETTINGS_H_

Powered by Google App Engine
This is Rietveld 408576698