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

Unified Diff: content/browser/gpu/gpu_process_host.cc

Issue 2915513002: Replace deprecated base::NonThreadSafe in content/browser/gpu in favor of SequenceChecker. (Closed)
Patch Set: Created 3 years, 7 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 | « content/browser/gpu/gpu_process_host.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/gpu/gpu_process_host.cc
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc
index 172a84bbaa20bc9ef073b90b584ca15d8b3ebd56..4bcf34669392dd54605d202f3ceaa2bad88c2cab 100644
--- a/content/browser/gpu/gpu_process_host.cc
+++ b/content/browser/gpu/gpu_process_host.cc
@@ -512,7 +512,7 @@ GpuProcessHost::GpuProcessHost(int host_id, GpuProcessKind kind)
}
GpuProcessHost::~GpuProcessHost() {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
SendOutstandingReplies();
@@ -659,7 +659,7 @@ bool GpuProcessHost::Init() {
}
bool GpuProcessHost::Send(IPC::Message* msg) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
if (process_->GetHost()->IsChannelOpening()) {
queued_messages_.push(msg);
return true;
@@ -676,7 +676,7 @@ bool GpuProcessHost::Send(IPC::Message* msg) {
}
bool GpuProcessHost::OnMessageReceived(const IPC::Message& message) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
#if defined(USE_OZONE)
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
base::Bind(&RouteMessageToOzoneOnUI, message));
@@ -700,7 +700,7 @@ void GpuProcessHost::EstablishGpuChannel(
bool allow_view_command_buffers,
bool allow_real_time_streams,
const EstablishChannelCallback& callback) {
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
TRACE_EVENT0("gpu", "GpuProcessHost::EstablishGpuChannel");
// If GPU features are already blacklisted, no need to establish the channel.
@@ -737,7 +737,7 @@ void GpuProcessHost::CreateGpuMemoryBuffer(
const CreateGpuMemoryBufferCallback& callback) {
TRACE_EVENT0("gpu", "GpuProcessHost::CreateGpuMemoryBuffer");
- DCHECK(CalledOnValidThread());
+ DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
create_gpu_memory_buffer_requests_.push(callback);
gpu_service_ptr_->CreateGpuMemoryBuffer(
id, size, format, usage, client_id, surface_handle,
« no previous file with comments | « content/browser/gpu/gpu_process_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698