| Index: content/browser/android/in_process/synchronous_compositor_context_provider.h
|
| diff --git a/content/browser/android/in_process/synchronous_compositor_context_provider.h b/content/browser/android/in_process/synchronous_compositor_context_provider.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2251273ba4613e32797e92c055c8b2ae8c7e765d
|
| --- /dev/null
|
| +++ b/content/browser/android/in_process/synchronous_compositor_context_provider.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVIDER_H_
|
| +#define CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVIDER_H_
|
| +
|
| +#include "content/common/gpu/client/context_provider_command_buffer.h"
|
| +
|
| +namespace content {
|
| +
|
| +// This class exists purely to ignore memory signals from the command buffer.
|
| +// Synchronous compositor manages memory by itself.
|
| +class SynchronousCompositorContextProvider
|
| + : public ContextProviderCommandBuffer {
|
| + public:
|
| + SynchronousCompositorContextProvider(
|
| + scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
|
| + CommandBufferContextType type);
|
| +
|
| + private:
|
| + ~SynchronousCompositorContextProvider() override;
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVIDER_H_
|
|
|