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

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

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: . Created 4 years, 8 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 30 matching lines...) Expand all
41 context3d, 41 context3d,
42 const std::string& debug_name); 42 const std::string& debug_name);
43 ~ContextProviderInProcess() override; 43 ~ContextProviderInProcess() override;
44 44
45 // cc_blink::ContextProviderWebContext: 45 // cc_blink::ContextProviderWebContext:
46 blink::WebGraphicsContext3D* WebContext3D() override; 46 blink::WebGraphicsContext3D* WebContext3D() override;
47 47
48 // cc::ContextProvider: 48 // cc::ContextProvider:
49 bool BindToCurrentThread() override; 49 bool BindToCurrentThread() override;
50 void DetachFromThread() override; 50 void DetachFromThread() override;
51 Capabilities ContextCapabilities() override; 51 gpu::Capabilities ContextCapabilities() override;
52 ::gpu::gles2::GLES2Interface* ContextGL() override; 52 gpu::gles2::GLES2Interface* ContextGL() override;
53 ::gpu::ContextSupport* ContextSupport() override; 53 gpu::ContextSupport* ContextSupport() override;
54 class GrContext* GrContext() override; 54 class GrContext* GrContext() override;
55 void InvalidateGrContext(uint32_t state) override; 55 void InvalidateGrContext(uint32_t state) override;
56 void SetupLock() override; 56 void SetupLock() override;
57 base::Lock* GetLock() override; 57 base::Lock* GetLock() override;
58 void DeleteCachedResources() override; 58 void DeleteCachedResources() override;
59 void SetLostContextCallback( 59 void SetLostContextCallback(
60 const LostContextCallback& lost_context_callback) override; 60 const LostContextCallback& lost_context_callback) override;
61 61
62 void OnLostContext(); 62 void OnLostContext();
63 void InitializeCapabilities();
64 63
65 base::ThreadChecker main_thread_checker_; 64 base::ThreadChecker main_thread_checker_;
66 base::ThreadChecker context_thread_checker_; 65 base::ThreadChecker context_thread_checker_;
67 66
68 std::unique_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl> 67 std::unique_ptr<gpu_blink::WebGraphicsContext3DInProcessCommandBufferImpl>
69 context3d_; 68 context3d_;
70 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_; 69 std::unique_ptr<skia_bindings::GrContextForGLES2Interface> gr_context_;
71 70
72 LostContextCallback lost_context_callback_; 71 LostContextCallback lost_context_callback_;
73 72
74 base::Lock context_lock_; 73 base::Lock context_lock_;
75 std::string debug_name_; 74 std::string debug_name_;
76 class LostContextCallbackProxy; 75 class LostContextCallbackProxy;
77 std::unique_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; 76 std::unique_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
78 77
79 cc::ContextProvider::Capabilities capabilities_;
80
81 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); 78 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess);
82 }; 79 };
83 80
84 } // namespace content 81 } // namespace content
85 82
86 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_ 83 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_CONTEXT_PROVIDER_IN_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698