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

Unified Diff: content/browser/android/in_process/synchronous_compositor_context_provider.h

Issue 1268383003: Sync compositor: Ignore command buffer memory callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
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..5a692a65597f25e2bef1d2867909d595a472fa2e
--- /dev/null
+++ b/content/browser/android/in_process/synchronous_compositor_context_provider.h
@@ -0,0 +1,31 @@
+// 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);
+
+ void SetMemoryPolicyChangedCallback(
+ const MemoryPolicyChangedCallback& memory_policy_changed_callback)
+ override;
+
+ private:
+ ~SynchronousCompositorContextProvider() override;
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_ANDROID_IN_PROCESS_SYNCHRONOUS_COMPOSITOR_CONTEXT_PROVIDER_H_

Powered by Google App Engine
This is Rietveld 408576698