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

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

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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 VerifyContexts() override; 54 void VerifyContexts() override;
55 void DeleteCachedResources() override; 55 void DeleteCachedResources() override;
56 bool DestroyedOnMainThread() override; 56 bool DestroyedOnMainThread() override;
57 void SetLostContextCallback( 57 void SetLostContextCallback(
58 const LostContextCallback& lost_context_callback) override; 58 const LostContextCallback& lost_context_callback) override;
59 void SetMemoryPolicyChangedCallback(
60 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
61 override;
62 59
63 void OnLostContext(); 60 void OnLostContext();
64 void InitializeCapabilities(); 61 void InitializeCapabilities();
65 62
66 base::ThreadChecker main_thread_checker_; 63 base::ThreadChecker main_thread_checker_;
67 base::ThreadChecker context_thread_checker_; 64 base::ThreadChecker context_thread_checker_;
68 65
69 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl> 66 scoped_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl>
70 context3d_; 67 context3d_;
71 scoped_ptr<GrContextForWebGraphicsContext3D> gr_context_; 68 scoped_ptr<GrContextForWebGraphicsContext3D> gr_context_;
72 69
73 LostContextCallback lost_context_callback_; 70 LostContextCallback lost_context_callback_;
74 71
75 base::Lock destroyed_lock_; 72 base::Lock destroyed_lock_;
76 bool destroyed_; 73 bool destroyed_;
77 74
78 base::Lock context_lock_; 75 base::Lock context_lock_;
79 std::string debug_name_; 76 std::string debug_name_;
80 class LostContextCallbackProxy; 77 class LostContextCallbackProxy;
81 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; 78 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
82 79
83 cc::ContextProvider::Capabilities capabilities_; 80 cc::ContextProvider::Capabilities capabilities_;
84 81
85 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); 82 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess);
86 }; 83 };
87 84
88 } // namespace content 85 } // namespace content
89 86
90 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ 87 #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