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

Side by Side Diff: cc/layer_tree_host_unittest.cc

Issue 12210077: cc: Disable RenderSurface caching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RebasedTOHead Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/layer_tree_settings.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/layer_tree_host.h" 5 #include "cc/layer_tree_host.h"
6 6
7 #include "base/synchronization/lock.h" 7 #include "base/synchronization/lock.h"
8 #include "cc/content_layer.h" 8 #include "cc/content_layer.h"
9 #include "cc/content_layer_client.h" 9 #include "cc/content_layer_client.h"
10 #include "cc/frame_rate_controller.h" 10 #include "cc/frame_rate_controller.h"
(...skipping 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 public: 1398 public:
1399 LayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit() 1399 LayerTreeHostTestSurfaceNotAllocatedForLayersOutsideMemoryLimit()
1400 : m_rootLayer(ContentLayerWithUpdateTracking::create(&m_fakeDelegate)) 1400 : m_rootLayer(ContentLayerWithUpdateTracking::create(&m_fakeDelegate))
1401 , m_surfaceLayer1(ContentLayerWithUpdateTracking::create(&m_fakeDelegate )) 1401 , m_surfaceLayer1(ContentLayerWithUpdateTracking::create(&m_fakeDelegate ))
1402 , m_replicaLayer1(ContentLayerWithUpdateTracking::create(&m_fakeDelegate )) 1402 , m_replicaLayer1(ContentLayerWithUpdateTracking::create(&m_fakeDelegate ))
1403 , m_surfaceLayer2(ContentLayerWithUpdateTracking::create(&m_fakeDelegate )) 1403 , m_surfaceLayer2(ContentLayerWithUpdateTracking::create(&m_fakeDelegate ))
1404 , m_replicaLayer2(ContentLayerWithUpdateTracking::create(&m_fakeDelegate )) 1404 , m_replicaLayer2(ContentLayerWithUpdateTracking::create(&m_fakeDelegate ))
1405 { 1405 {
1406 } 1406 }
1407 1407
1408 virtual void initializeSettings(LayerTreeSettings& settings) OVERRIDE
1409 {
1410 settings.cacheRenderPassContents = true;
1411 }
1412
1408 virtual void beginTest() OVERRIDE 1413 virtual void beginTest() OVERRIDE
1409 { 1414 {
1410 m_layerTreeHost->setViewportSize(gfx::Size(100, 100), gfx::Size(100, 100 )); 1415 m_layerTreeHost->setViewportSize(gfx::Size(100, 100), gfx::Size(100, 100 ));
1411 1416
1412 m_rootLayer->setBounds(gfx::Size(100, 100)); 1417 m_rootLayer->setBounds(gfx::Size(100, 100));
1413 m_surfaceLayer1->setBounds(gfx::Size(100, 100)); 1418 m_surfaceLayer1->setBounds(gfx::Size(100, 100));
1414 m_surfaceLayer1->setForceRenderSurface(true); 1419 m_surfaceLayer1->setForceRenderSurface(true);
1415 m_surfaceLayer1->setOpacity(0.5); 1420 m_surfaceLayer1->setOpacity(0.5);
1416 m_surfaceLayer2->setBounds(gfx::Size(100, 100)); 1421 m_surfaceLayer2->setBounds(gfx::Size(100, 100));
1417 m_surfaceLayer2->setForceRenderSurface(true); 1422 m_surfaceLayer2->setForceRenderSurface(true);
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
2099 } 2104 }
2100 2105
2101 TEST_F(LayerTreeHostTestMaxPendingFrames, GLRenderer) 2106 TEST_F(LayerTreeHostTestMaxPendingFrames, GLRenderer)
2102 { 2107 {
2103 m_delegatingRenderer = false; 2108 m_delegatingRenderer = false;
2104 runTest(true); 2109 runTest(true);
2105 } 2110 }
2106 2111
2107 } // namespace 2112 } // namespace
2108 } // namespace cc 2113 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/layer_tree_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698