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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_factory_host.h

Issue 1189943002: content: Fix lost context handling when using native GpuMemoryBuffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: retry logic and remove singleton Created 5 years, 6 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/common/gpu/client/gpu_memory_buffer_factory_host.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_factory_host.h b/content/common/gpu/client/gpu_memory_buffer_factory_host.h
deleted file mode 100644
index fc42b1804b1a16dc8838d6a663bf14973471eb29..0000000000000000000000000000000000000000
--- a/content/common/gpu/client/gpu_memory_buffer_factory_host.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2014 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_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_
-#define CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_
-
-#include "base/callback.h"
-#include "content/common/content_export.h"
-#include "ui/gfx/gpu_memory_buffer.h"
-
-namespace gfx {
-class Size;
-}
-
-namespace content {
-
-class CONTENT_EXPORT GpuMemoryBufferFactoryHost {
- public:
- typedef base::Callback<void(const gfx::GpuMemoryBufferHandle& handle)>
- CreateGpuMemoryBufferCallback;
-
- virtual bool IsGpuMemoryBufferConfigurationSupported(
- gfx::GpuMemoryBuffer::Format format,
- gfx::GpuMemoryBuffer::Usage usage) = 0;
- virtual void CreateGpuMemoryBuffer(
- gfx::GpuMemoryBufferId id,
- const gfx::Size& size,
- gfx::GpuMemoryBuffer::Format format,
- gfx::GpuMemoryBuffer::Usage usage,
- int client_id,
- int32 surface_id,
- const CreateGpuMemoryBufferCallback& callback) = 0;
- virtual void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
- int client_id,
- int32 sync_point) = 0;
-
- protected:
- virtual ~GpuMemoryBufferFactoryHost() {}
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_GPU_CLIENT_GPU_MEMORY_BUFFER_FACTORY_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698