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

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

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 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVID ER_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVID ER_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVID ER_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVID ER_H_
7 7
8 #include "content/common/gpu/client/context_provider_command_buffer.h" 8 #include "content/common/gpu/client/context_provider_command_buffer.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 // This class exists purely to ignore memory signals from the command buffer. 12 // This class exists purely to ignore memory signals from the command buffer.
13 // Synchronous compositor manages memory by itself. 13 // Synchronous compositor manages memory by itself.
14 class SynchronousCompositorContextProvider 14 class SynchronousCompositorContextProvider
15 : public ContextProviderCommandBuffer { 15 : public ContextProviderCommandBuffer {
16 public: 16 public:
17 SynchronousCompositorContextProvider( 17 SynchronousCompositorContextProvider(
18 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, 18 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
19 CommandBufferContextType type); 19 CommandBufferContextType type);
20 20
21 void SetMemoryPolicyChangedCallback(
22 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
23 override;
24
25 private: 21 private:
26 ~SynchronousCompositorContextProvider() override; 22 ~SynchronousCompositorContextProvider() override;
27 }; 23 };
28 24
29 } // namespace content 25 } // namespace content
30 26
31 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PRO VIDER_H_ 27 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PRO VIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698