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

Side by Side Diff: cc/test/test_context_support.cc

Issue 342483007: Removed ManagedMemoryStats. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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/test/test_context_support.h ('k') | cc/trees/layer_tree_host_impl.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 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/test/test_context_support.h" 5 #include "cc/test/test_context_support.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 22 matching lines...) Expand all
33 base::Bind(&TestContextSupport::CallAllSyncPointCallbacks, 33 base::Bind(&TestContextSupport::CallAllSyncPointCallbacks,
34 weak_ptr_factory_.GetWeakPtr())); 34 weak_ptr_factory_.GetWeakPtr()));
35 } 35 }
36 36
37 void TestContextSupport::SetSurfaceVisible(bool visible) { 37 void TestContextSupport::SetSurfaceVisible(bool visible) {
38 if (!set_visible_callback_.is_null()) { 38 if (!set_visible_callback_.is_null()) {
39 set_visible_callback_.Run(visible); 39 set_visible_callback_.Run(visible);
40 } 40 }
41 } 41 }
42 42
43 void TestContextSupport::SendManagedMemoryStats(
44 const gpu::ManagedMemoryStats& stats) {}
45
46 void TestContextSupport::CallAllSyncPointCallbacks() { 43 void TestContextSupport::CallAllSyncPointCallbacks() {
47 for (size_t i = 0; i < sync_point_callbacks_.size(); ++i) { 44 for (size_t i = 0; i < sync_point_callbacks_.size(); ++i) {
48 base::MessageLoop::current()->PostTask( 45 base::MessageLoop::current()->PostTask(
49 FROM_HERE, sync_point_callbacks_[i]); 46 FROM_HERE, sync_point_callbacks_[i]);
50 } 47 }
51 sync_point_callbacks_.clear(); 48 sync_point_callbacks_.clear();
52 } 49 }
53 50
54 void TestContextSupport::SetSurfaceVisibleCallback( 51 void TestContextSupport::SetSurfaceVisibleCallback(
55 const SurfaceVisibleCallback& set_visible_callback) { 52 const SurfaceVisibleCallback& set_visible_callback) {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const base::Closure& callback) { 92 const base::Closure& callback) {
96 swap_buffers_complete_callback_ = callback; 93 swap_buffers_complete_callback_ = callback;
97 } 94 }
98 95
99 void TestContextSupport::OnSwapBuffersComplete() { 96 void TestContextSupport::OnSwapBuffersComplete() {
100 if (!swap_buffers_complete_callback_.is_null()) 97 if (!swap_buffers_complete_callback_.is_null())
101 swap_buffers_complete_callback_.Run(); 98 swap_buffers_complete_callback_.Run();
102 } 99 }
103 100
104 } // namespace cc 101 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_context_support.h ('k') | cc/trees/layer_tree_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698