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

Side by Side Diff: cc/layers/heads_up_display_unittest.cc

Issue 22900018: cc: Set the mapped memory reclaim limit for the renderer compositor on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment Created 7 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/heads_up_display_layer.h" 5 #include "cc/layers/heads_up_display_layer.h"
6 #include "cc/layers/layer.h" 6 #include "cc/layers/layer.h"
7 #include "cc/test/layer_tree_test.h" 7 #include "cc/test/layer_tree_test.h"
8 #include "cc/trees/layer_tree_host.h" 8 #include "cc/trees/layer_tree_host.h"
9 9
10 namespace cc { 10 namespace cc {
11 namespace { 11 namespace {
12 12
13 class HeadsUpDisplayTest : public LayerTreeTest { 13 class HeadsUpDisplayTest : public LayerTreeTest {
14 protected: 14 protected:
15 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE { 15 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
16 // Enable the HUD without requiring text. 16 // Enable the HUD without requiring text.
17 settings->initial_debug_state.show_property_changed_rects = true; 17 settings->initial_debug_state.show_property_changed_rects = true;
18 settings->max_bytes_pending_upload = 16 * 1024 * 1024;
18 } 19 }
19 }; 20 };
20 21
21 class DrawsContentLayer : public Layer { 22 class DrawsContentLayer : public Layer {
22 public: 23 public:
23 static scoped_refptr<DrawsContentLayer> Create() { 24 static scoped_refptr<DrawsContentLayer> Create() {
24 return make_scoped_refptr(new DrawsContentLayer()); 25 return make_scoped_refptr(new DrawsContentLayer());
25 } 26 }
26 virtual bool DrawsContent() const OVERRIDE { return true; } 27 virtual bool DrawsContent() const OVERRIDE { return true; }
27 28
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 private: 92 private:
92 scoped_refptr<DrawsContentLayer> root_layer1_; 93 scoped_refptr<DrawsContentLayer> root_layer1_;
93 scoped_refptr<DrawsContentLayer> root_layer2_; 94 scoped_refptr<DrawsContentLayer> root_layer2_;
94 int num_commits_; 95 int num_commits_;
95 }; 96 };
96 97
97 MULTI_THREAD_TEST_F(HudWithRootLayerChange); 98 MULTI_THREAD_TEST_F(HudWithRootLayerChange);
98 99
99 } // namespace 100 } // namespace
100 } // namespace cc 101 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/layers/scrollbar_layer_unittest.cc » ('j') | cc/trees/layer_tree_host_unittest_context.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698