Revert of cc: Implement shared worker contexts. (patchset #9 id:160001 of https:...
[chromium-blink-merge.git] / content / browser / android / in_process / synchronous_compositor_context_provider.h
blob5a692a65597f25e2bef1d2867909d595a472fa2e
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVIDER_H_
6 #define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVIDER_H_
8 #include "content/common/gpu/client/context_provider_command_buffer.h"
10 namespace content {
12 // This class exists purely to ignore memory signals from the command buffer.
13 // Synchronous compositor manages memory by itself.
14 class SynchronousCompositorContextProvider
15 : public ContextProviderCommandBuffer {
16 public:
17 SynchronousCompositorContextProvider(
18 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
19 CommandBufferContextType type);
21 void SetMemoryPolicyChangedCallback(
22 const MemoryPolicyChangedCallback& memory_policy_changed_callback)
23 override;
25 private:
26 ~SynchronousCompositorContextProvider() override;
29 } // namespace content
31 #endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVIDER_H_