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

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: Rebase to 165444 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
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 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after
2856 2856
2857 postSetNeedsCommitToMainThread(); 2857 postSetNeedsCommitToMainThread();
2858 } 2858 }
2859 2859
2860 void postEvictTextures() 2860 void postEvictTextures()
2861 { 2861 {
2862 if (implThread()) { 2862 if (implThread()) {
2863 implThread()->postTask(base::Bind(&LayerTreeHostTestLostContextAfter EvictTextures::evictTexturesOnImplThread, 2863 implThread()->postTask(base::Bind(&LayerTreeHostTestLostContextAfter EvictTextures::evictTexturesOnImplThread,
2864 base::Unretained(this))); 2864 base::Unretained(this)));
2865 } else { 2865 } else {
2866 DebugScopedSetImplThread impl; 2866 DebugScopedSetImplThread impl(proxy());
2867 evictTexturesOnImplThread(); 2867 evictTexturesOnImplThread();
2868 } 2868 }
2869 } 2869 }
2870 2870
2871 void evictTexturesOnImplThread() 2871 void evictTexturesOnImplThread()
2872 { 2872 {
2873 DCHECK(m_implForEvictTextures); 2873 DCHECK(m_implForEvictTextures);
2874 m_implForEvictTextures->enforceManagedMemoryPolicy(ManagedMemoryPolicy(0 )); 2874 m_implForEvictTextures->enforceManagedMemoryPolicy(ManagedMemoryPolicy(0 ));
2875 } 2875 }
2876 2876
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
3266 int m_numCommitsDeferred; 3266 int m_numCommitsDeferred;
3267 int m_numCompleteCommits; 3267 int m_numCompleteCommits;
3268 }; 3268 };
3269 3269
3270 TEST_F(LayerTreeHostTestDeferCommits, runMultiThread) 3270 TEST_F(LayerTreeHostTestDeferCommits, runMultiThread)
3271 { 3271 {
3272 runTest(true); 3272 runTest(true);
3273 } 3273 }
3274 3274
3275 } // namespace 3275 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698