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

Unified Diff: cc/test/test_context_provider.cc

Issue 1324413003: Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comment + android_arm64_dbg_recipe bot issue. Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/test_context_provider.h ('k') | cc/test/test_in_process_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_context_provider.cc
diff --git a/cc/test/test_context_provider.cc b/cc/test/test_context_provider.cc
index 5e43ee3fcc5892c73b5afa24124d42c2479a57b5..c943aad5515d859639a398667c9f0e27895ee280 100644
--- a/cc/test/test_context_provider.cc
+++ b/cc/test/test_context_provider.cc
@@ -185,13 +185,6 @@ TestWebGraphicsContext3D* TestContextProvider::UnboundTestContext3d() {
return context3d_.get();
}
-void TestContextProvider::SetMemoryAllocation(
- const ManagedMemoryPolicy& policy) {
- if (memory_policy_changed_callback_.is_null())
- return;
- memory_policy_changed_callback_.Run(policy);
-}
-
void TestContextProvider::SetLostContextCallback(
const LostContextCallback& cb) {
DCHECK(context_thread_checker_.CalledOnValidThread());
@@ -199,13 +192,6 @@ void TestContextProvider::SetLostContextCallback(
lost_context_callback_ = cb;
}
-void TestContextProvider::SetMemoryPolicyChangedCallback(
- const MemoryPolicyChangedCallback& cb) {
- DCHECK(context_thread_checker_.CalledOnValidThread());
- DCHECK(memory_policy_changed_callback_.is_null() || cb.is_null());
- memory_policy_changed_callback_ = cb;
-}
-
void TestContextProvider::SetMaxTransferBufferUsageBytes(
size_t max_transfer_buffer_usage_bytes) {
context3d_->SetMaxTransferBufferUsageBytes(max_transfer_buffer_usage_bytes);
« no previous file with comments | « cc/test/test_context_provider.h ('k') | cc/test/test_in_process_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698