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

Side by Side Diff: android_webview/browser/aw_render_thread_context_provider.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
« no previous file with comments | « no previous file | android_webview/browser/aw_render_thread_context_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 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 ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_
6 #define ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 29 matching lines...) Expand all
40 Capabilities ContextCapabilities() override; 40 Capabilities ContextCapabilities() override;
41 gpu::gles2::GLES2Interface* ContextGL() override; 41 gpu::gles2::GLES2Interface* ContextGL() override;
42 gpu::ContextSupport* ContextSupport() override; 42 gpu::ContextSupport* ContextSupport() override;
43 class GrContext* GrContext() override; 43 class GrContext* GrContext() override;
44 void InvalidateGrContext(uint32_t state) override; 44 void InvalidateGrContext(uint32_t state) override;
45 void SetupLock() override; 45 void SetupLock() override;
46 base::Lock* GetLock() override; 46 base::Lock* GetLock() override;
47 void DeleteCachedResources() override; 47 void DeleteCachedResources() override;
48 void SetLostContextCallback( 48 void SetLostContextCallback(
49 const LostContextCallback& lost_context_callback) override; 49 const LostContextCallback& lost_context_callback) override;
50 void SetMemoryPolicyChangedCallback(
51 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
52 override;
50 53
51 void OnLostContext(); 54 void OnLostContext();
52 55
53 base::ThreadChecker main_thread_checker_; 56 base::ThreadChecker main_thread_checker_;
54 57
55 scoped_ptr<gpu::GLInProcessContext> context_; 58 scoped_ptr<gpu::GLInProcessContext> context_;
56 skia::RefPtr<class GrContext> gr_context_; 59 skia::RefPtr<class GrContext> gr_context_;
57 60
58 cc::ContextProvider::Capabilities capabilities_; 61 cc::ContextProvider::Capabilities capabilities_;
59 62
60 LostContextCallback lost_context_callback_; 63 LostContextCallback lost_context_callback_;
61 64
62 base::Lock context_lock_; 65 base::Lock context_lock_;
63 66
64 DISALLOW_COPY_AND_ASSIGN(AwRenderThreadContextProvider); 67 DISALLOW_COPY_AND_ASSIGN(AwRenderThreadContextProvider);
65 }; 68 };
66 69
67 } // namespace android_webview 70 } // namespace android_webview
68 71
69 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_ 72 #endif // ANDROID_WEBVIEW_BROWSER_AW_RENDER_THREAD_CONTEXT_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/aw_render_thread_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698