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

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

Issue 1324413003: Move gpu memory calculations to Compositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove more memory alloc codes. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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/synchronous_compositor_context_prov ider.h" 5 #include "content/browser/android/in_process/synchronous_compositor_context_prov ider.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 SynchronousCompositorContextProvider::SynchronousCompositorContextProvider( 9 SynchronousCompositorContextProvider::SynchronousCompositorContextProvider(
10 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, 10 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
11 CommandBufferContextType type) 11 CommandBufferContextType type)
12 : ContextProviderCommandBuffer(context3d.Pass(), type) {} 12 : ContextProviderCommandBuffer(context3d.Pass(), type) {}
13 13
14 SynchronousCompositorContextProvider::~SynchronousCompositorContextProvider() {} 14 SynchronousCompositorContextProvider::~SynchronousCompositorContextProvider() {}
15 15
16 void SynchronousCompositorContextProvider::SetMemoryPolicyChangedCallback(
17 const MemoryPolicyChangedCallback& memory_policy_changed_callback) {
18 // Intentional no-op.
19 }
20
21 } // namespace content 16 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698