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

Side by Side Diff: cc/layer_tree_host_unittest.cc

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Apply code review comments Created 8 years, 1 month 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
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/layer_unittest.cc » ('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 "config.h" 5 #include "config.h"
6 6
7 #include "cc/layer_tree_host.h" 7 #include "cc/layer_tree_host.h"
8 8
9 #include "base/synchronization/lock.h" 9 #include "base/synchronization/lock.h"
10 #include "cc/content_layer.h" 10 #include "cc/content_layer.h"
(...skipping 2844 matching lines...) Expand 10 before | Expand all | Expand 10 after
2855 2855
2856 postSetNeedsCommitToMainThread(); 2856 postSetNeedsCommitToMainThread();
2857 } 2857 }
2858 2858
2859 void postEvictTextures() 2859 void postEvictTextures()
2860 { 2860 {
2861 if (implThread()) { 2861 if (implThread()) {
2862 implThread()->postTask(base::Bind(&LayerTreeHostTestLostContextAfter EvictTextures::evictTexturesOnImplThread, 2862 implThread()->postTask(base::Bind(&LayerTreeHostTestLostContextAfter EvictTextures::evictTexturesOnImplThread,
2863 base::Unretained(this))); 2863 base::Unretained(this)));
2864 } else { 2864 } else {
2865 DebugScopedSetImplThread impl; 2865 DebugScopedSetImplThread impl(proxy());
2866 evictTexturesOnImplThread(); 2866 evictTexturesOnImplThread();
2867 } 2867 }
2868 } 2868 }
2869 2869
2870 void evictTexturesOnImplThread() 2870 void evictTexturesOnImplThread()
2871 { 2871 {
2872 DCHECK(m_implForEvictTextures); 2872 DCHECK(m_implForEvictTextures);
2873 m_implForEvictTextures->enforceManagedMemoryPolicy(ManagedMemoryPolicy(0 )); 2873 m_implForEvictTextures->enforceManagedMemoryPolicy(ManagedMemoryPolicy(0 ));
2874 } 2874 }
2875 2875
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
3265 int m_numCommitsDeferred; 3265 int m_numCommitsDeferred;
3266 int m_numCompleteCommits; 3266 int m_numCompleteCommits;
3267 }; 3267 };
3268 3268
3269 TEST_F(LayerTreeHostTestDeferCommits, runMultiThread) 3269 TEST_F(LayerTreeHostTestDeferCommits, runMultiThread)
3270 { 3270 {
3271 runTest(true); 3271 runTest(true);
3272 } 3272 }
3273 3273
3274 } // anonymous namespace 3274 } // anonymous namespace
OLDNEW
« no previous file with comments | « cc/layer_tree_host_impl_unittest.cc ('k') | cc/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698