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

Unified Diff: content/browser/gpu/browser_gpu_channel_host_factory.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/browser/gpu/browser_gpu_channel_host_factory.h
diff --git a/content/browser/gpu/browser_gpu_channel_host_factory.h b/content/browser/gpu/browser_gpu_channel_host_factory.h
index 93e28df12f90047386a4761bfcc1bf43c4e96738..049cec1f2b3a176c26f65d36046e8749d694c65c 100644
--- a/content/browser/gpu/browser_gpu_channel_host_factory.h
+++ b/content/browser/gpu/browser_gpu_channel_host_factory.h
@@ -11,27 +11,18 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/gpu/client/gpu_channel_host.h"
-#include "content/common/gpu/client/gpu_memory_buffer_factory_host.h"
#include "ipc/message_filter.h"
namespace content {
class BrowserGpuMemoryBufferManager;
class CONTENT_EXPORT BrowserGpuChannelHostFactory
- : public GpuChannelHostFactory,
- public GpuMemoryBufferFactoryHost {
+ : public GpuChannelHostFactory {
public:
static void Initialize(bool establish_gpu_channel);
static void Terminate();
static BrowserGpuChannelHostFactory* instance() { return instance_; }
- static void EnableGpuMemoryBufferFactoryUsage(
- gfx::GpuMemoryBuffer::Usage usage);
- static bool IsGpuMemoryBufferFactoryUsageEnabled(
- gfx::GpuMemoryBuffer::Usage usage);
- static uint32 GetImageTextureTarget(gfx::GpuMemoryBuffer::Format format,
- gfx::GpuMemoryBuffer::Usage usage);
-
// Overridden from GpuChannelHostFactory:
bool IsMainThread() override;
scoped_refptr<base::SingleThreadTaskRunner> GetIOThreadTaskRunner() override;
@@ -42,22 +33,6 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
int32 route_id) override;
IPC::AttachmentBroker* GetAttachmentBroker() override;
- // Overridden from GpuMemoryBufferFactoryHost:
- bool IsGpuMemoryBufferConfigurationSupported(
- gfx::GpuMemoryBuffer::Format format,
- gfx::GpuMemoryBuffer::Usage usage) override;
- 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) override;
- void DestroyGpuMemoryBuffer(gfx::GpuMemoryBufferId id,
- int client_id,
- int32 sync_point) override;
-
int GpuProcessHostId() { return gpu_host_id_; }
#if !defined(OS_ANDROID)
GpuChannelHost* EstablishGpuChannelSync(
@@ -87,11 +62,6 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
CreateCommandBufferResult result);
static void AddFilterOnIO(int gpu_host_id,
scoped_refptr<IPC::MessageFilter> filter);
- void DestroyGpuMemoryBufferOnIO(gfx::GpuMemoryBufferId id,
- int client_id,
- int32 sync_point);
- void OnGpuMemoryBufferCreated(uint32 request_id,
- const gfx::GpuMemoryBufferHandle& handle);
const int gpu_client_id_;
scoped_ptr<base::WaitableEvent> shutdown_event_;
@@ -100,10 +70,6 @@ class CONTENT_EXPORT BrowserGpuChannelHostFactory
int gpu_host_id_;
scoped_refptr<EstablishRequest> pending_request_;
std::vector<base::Closure> established_callbacks_;
- uint32 next_create_gpu_memory_buffer_request_id_;
- typedef std::map<uint32, CreateGpuMemoryBufferCallback>
- CreateGpuMemoryBufferCallbackMap;
- CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_;
static BrowserGpuChannelHostFactory* instance_;
« no previous file with comments | « content/browser/compositor/gpu_process_transport_factory.cc ('k') | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698