summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_command_buffer_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.cc')
-rw-r--r--content/common/gpu/gpu_command_buffer_stub.cc17
1 files changed, 10 insertions, 7 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index eae3cd4..5fd4726 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -18,7 +18,6 @@
#include "build/build_config.h"
#include "content/common/gpu/gpu_channel.h"
#include "content/common/gpu/gpu_channel_manager.h"
-#include "content/common/gpu/gpu_channel_manager_delegate.h"
#include "content/common/gpu/gpu_memory_manager.h"
#include "content/common/gpu/gpu_memory_tracking.h"
#include "content/common/gpu/gpu_messages.h"
@@ -468,8 +467,10 @@ void GpuCommandBufferStub::Destroy() {
if (initialized_) {
GpuChannelManager* gpu_channel_manager = channel_->gpu_channel_manager();
- if (handle_.is_null() && !active_url_.is_empty())
- gpu_channel_manager->delegate()->DidDestroyOffscreenContext(active_url_);
+ if (handle_.is_null() && !active_url_.is_empty()) {
+ gpu_channel_manager->Send(
+ new GpuHostMsg_DidDestroyOffscreenContext(active_url_));
+ }
}
if (decoder_)
@@ -668,8 +669,10 @@ void GpuCommandBufferStub::OnInitialize(
reply_message, true, capabilities);
Send(reply_message);
- if (handle_.is_null() && !active_url_.is_empty())
- manager->delegate()->DidCreateOffscreenContext(active_url_);
+ if (handle_.is_null() && !active_url_.is_empty()) {
+ manager->Send(new GpuHostMsg_DidCreateOffscreenContext(
+ active_url_));
+ }
initialized_ = true;
}
@@ -732,8 +735,8 @@ void GpuCommandBufferStub::OnParseError() {
// determine whether client APIs like WebGL need to be immediately
// blocked from automatically running.
GpuChannelManager* gpu_channel_manager = channel_->gpu_channel_manager();
- gpu_channel_manager->delegate()->DidLoseContext(
- handle_.is_null(), state.context_lost_reason, active_url_);
+ gpu_channel_manager->Send(new GpuHostMsg_DidLoseContext(
+ handle_.is_null(), state.context_lost_reason, active_url_));
CheckContextLost();
}