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

Side by Side Diff: content/browser/android/in_process/context_provider_in_process.cc

Issue 1412923004: Revert of Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "content/browser/android/in_process/context_provider_in_process.h" 5 #include "content/browser/android/in_process/context_provider_in_process.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "cc/output/managed_memory_policy.h" 10 #include "cc/output/managed_memory_policy.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 void ContextProviderInProcess::SetLostContextCallback( 176 void ContextProviderInProcess::SetLostContextCallback(
177 const LostContextCallback& lost_context_callback) { 177 const LostContextCallback& lost_context_callback) {
178 DCHECK(context_thread_checker_.CalledOnValidThread()); 178 DCHECK(context_thread_checker_.CalledOnValidThread());
179 DCHECK(lost_context_callback_.is_null() || 179 DCHECK(lost_context_callback_.is_null() ||
180 lost_context_callback.is_null()); 180 lost_context_callback.is_null());
181 lost_context_callback_ = lost_context_callback; 181 lost_context_callback_ = lost_context_callback;
182 } 182 }
183 183
184 void ContextProviderInProcess::SetMemoryPolicyChangedCallback(
185 const MemoryPolicyChangedCallback& memory_policy_changed_callback) {
186 // There's no memory manager for the in-process implementation.
187 }
188
184 } // namespace content 189 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698