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

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

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 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ 6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 Capabilities ContextCapabilities() override; 47 Capabilities ContextCapabilities() override;
48 ::gpu::gles2::GLES2Interface* ContextGL() override; 48 ::gpu::gles2::GLES2Interface* ContextGL() override;
49 ::gpu::ContextSupport* ContextSupport() override; 49 ::gpu::ContextSupport* ContextSupport() override;
50 class GrContext* GrContext() override; 50 class GrContext* GrContext() override;
51 void InvalidateGrContext(uint32_t state) override; 51 void InvalidateGrContext(uint32_t state) override;
52 void SetupLock() override; 52 void SetupLock() override;
53 base::Lock* GetLock() override; 53 base::Lock* GetLock() override;
54 void DeleteCachedResources() override; 54 void DeleteCachedResources() override;
55 void SetLostContextCallback( 55 void SetLostContextCallback(
56 const LostContextCallback& lost_context_callback) override; 56 const LostContextCallback& lost_context_callback) override;
57 void SetMemoryPolicyChangedCallback(
58 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
59 override;
57 60
58 void OnLostContext(); 61 void OnLostContext();
59 void InitializeCapabilities(); 62 void InitializeCapabilities();
60 63
61 base::ThreadChecker main_thread_checker_; 64 base::ThreadChecker main_thread_checker_;
62 base::ThreadChecker context_thread_checker_; 65 base::ThreadChecker context_thread_checker_;
63 66
64 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl> 67 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl>
65 context3d_; 68 context3d_;
66 scoped_ptr<GrContextForWebGraphicsContext3D> gr_context_; 69 scoped_ptr<GrContextForWebGraphicsContext3D> gr_context_;
67 70
68 LostContextCallback lost_context_callback_; 71 LostContextCallback lost_context_callback_;
69 72
70 base::Lock context_lock_; 73 base::Lock context_lock_;
71 std::string debug_name_; 74 std::string debug_name_;
72 class LostContextCallbackProxy; 75 class LostContextCallbackProxy;
73 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; 76 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
74 77
75 cc::ContextProvider::Capabilities capabilities_; 78 cc::ContextProvider::Capabilities capabilities_;
76 79
77 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); 80 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess);
78 }; 81 };
79 82
80 } // namespace content 83 } // namespace content
81 84
82 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ 85 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_
OLDNEW
« no previous file with comments | « components/mus/surfaces/surfaces_context_provider.h ('k') | content/browser/android/in_process/context_provider_in_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698