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

Side by Side Diff: cc/trees/layer_tree_host_unittest_delegated.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "cc/layers/delegated_renderer_layer.h" 10 #include "cc/layers/delegated_renderer_layer.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 } 196 }
197 197
198 if (resources_to_return.empty()) 198 if (resources_to_return.empty())
199 return; 199 return;
200 200
201 CompositorFrameAck ack; 201 CompositorFrameAck ack;
202 for (size_t i = 0; i < resources_to_return.size(); ++i) 202 for (size_t i = 0; i < resources_to_return.size(); ++i)
203 output_surface()->ReturnResource(resources_to_return[i], &ack); 203 output_surface()->ReturnResource(resources_to_return[i], &ack);
204 host_impl->OnSwapBuffersComplete(&ack); 204 host_impl->OnSwapBuffersComplete(&ack);
205 } 205 }
206
207 virtual void InitializeSettings(LayerTreeSettings* settings) OVERRIDE {
208 settings->max_bytes_pending_upload = 16 * 1024 * 1024;
209 }
206 }; 210 };
207 211
208 class LayerTreeHostDelegatedTestCaseSingleDelegatedLayer 212 class LayerTreeHostDelegatedTestCaseSingleDelegatedLayer
209 : public LayerTreeHostDelegatedTest, 213 : public LayerTreeHostDelegatedTest,
210 public DelegatedRendererLayerClient { 214 public DelegatedRendererLayerClient {
211 public: 215 public:
212 virtual void SetupTree() OVERRIDE { 216 virtual void SetupTree() OVERRIDE {
213 root_ = Layer::Create(); 217 root_ = Layer::Create();
214 root_->SetAnchorPoint(gfx::PointF()); 218 root_->SetAnchorPoint(gfx::PointF());
215 root_->SetBounds(gfx::Size(10, 10)); 219 root_->SetBounds(gfx::Size(10, 10));
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 } 1581 }
1578 } 1582 }
1579 1583
1580 virtual void AfterTest() OVERRIDE {} 1584 virtual void AfterTest() OVERRIDE {}
1581 }; 1585 };
1582 1586
1583 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostDelegatedTestCommitWithoutTake); 1587 SINGLE_AND_MULTI_THREAD_TEST_F(LayerTreeHostDelegatedTestCommitWithoutTake);
1584 1588
1585 } // namespace 1589 } // namespace
1586 } // namespace cc 1590 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698