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

Unified Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 1416373010: Implement a MusBrowserFrame. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome
Patch Set: . Created 5 years, 1 month 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: mojo/gles2/command_buffer_client_impl.cc
diff --git a/mojo/gles2/command_buffer_client_impl.cc b/mojo/gles2/command_buffer_client_impl.cc
index f20c200a417624a1475fc45e1a343f03eb57034d..5aca7a43abbff73bd39dcfc559e9e5d598b2bb7b 100644
--- a/mojo/gles2/command_buffer_client_impl.cc
+++ b/mojo/gles2/command_buffer_client_impl.cc
@@ -8,6 +8,7 @@
#include "base/logging.h"
#include "base/process/process_handle.h"
+#include "base/threading/thread_restrictions.h"
#include "components/mus/gles2/command_buffer_type_conversions.h"
#include "components/mus/gles2/mojo_buffer_backing.h"
#include "components/mus/gles2/mojo_gpu_memory_buffer.h"
@@ -141,6 +142,8 @@ CommandBufferClientImpl::CommandBufferClientImpl(
CommandBufferClientImpl::~CommandBufferClientImpl() {}
bool CommandBufferClientImpl::Initialize() {
+ base::ThreadRestrictions::ScopedAllowWait wait;
+
const size_t kSharedStateSize = sizeof(gpu::CommandBufferSharedState);
void* memory = NULL;
mojo::ScopedSharedBufferHandle duped;
@@ -329,6 +332,7 @@ int32_t CommandBufferClientImpl::CreateGpuMemoryBufferImage(
}
uint32_t CommandBufferClientImpl::InsertSyncPoint() {
+ base::ThreadRestrictions::ScopedAllowWait wait;
command_buffer_->InsertSyncPoint(true);
return sync_point_client_impl_->WaitForInsertSyncPoint();
}
« no previous file with comments | « chrome/browser/ui/views/frame/native_browser_frame_factory_chromeos.cc ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698