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

Unified Diff: gpu/ipc/client/command_buffer_proxy_impl.h

Issue 1885903002: Revert of Make lost context and error message callbacks on GpuControl go to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/client/command_buffer_proxy_impl.h
diff --git a/gpu/ipc/client/command_buffer_proxy_impl.h b/gpu/ipc/client/command_buffer_proxy_impl.h
index 89347bf2910c7b69352a0496afa0efbd98c8f1e5..cd72f7828844505d15c543cf786c2f3d206976d0 100644
--- a/gpu/ipc/client/command_buffer_proxy_impl.h
+++ b/gpu/ipc/client/command_buffer_proxy_impl.h
@@ -87,7 +87,6 @@
void DestroyTransferBuffer(int32_t id) override;
// gpu::GpuControl implementation:
- void SetGpuControlClient(GpuControlClient* client) override;
gpu::Capabilities GetCapabilities() override;
int32_t CreateImage(ClientBuffer buffer,
size_t width,
@@ -114,6 +113,7 @@
bool CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) override;
bool ProduceFrontBuffer(const gpu::Mailbox& mailbox);
+ void SetContextLostCallback(const base::Closure& callback);
void AddDeletionObserver(DeletionObserver* observer);
void RemoveDeletionObserver(DeletionObserver* observer);
@@ -197,9 +197,6 @@
base::Lock* lock_;
- // Client that wants to listen for important events on the GpuControl.
- gpu::GpuControlClient* gpu_control_client_;
-
// Unowned list of DeletionObservers.
base::ObserverList<DeletionObserver> deletion_observers_;
@@ -231,6 +228,8 @@
// Last verified fence sync.
uint64_t verified_fence_sync_release_;
+ base::Closure context_lost_callback_;
+
GpuConsoleMessageCallback console_message_callback_;
// Tasks to be invoked in SignalSyncPoint responses.
« no previous file with comments | « gpu/gles2_conform_support/egl/display.cc ('k') | gpu/ipc/client/command_buffer_proxy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698