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

Unified Diff: content/common/gpu/gpu_channel.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 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
Index: content/common/gpu/gpu_channel.cc
diff --git a/content/common/gpu/gpu_channel.cc b/content/common/gpu/gpu_channel.cc
index 7947ad61ebfdf253194b365dfe0d6fb189538ebf..c392a47fe9ed0059536429a787727fa4aecd9c78 100644
--- a/content/common/gpu/gpu_channel.cc
+++ b/content/common/gpu/gpu_channel.cc
@@ -126,7 +126,7 @@ class GpuChannelMessageFilter : public IPC::ChannelProxy::MessageFilter {
// All other messages get processed by the GpuChannel.
if (!handled) {
messages_forwarded_to_channel_++;
- if (preempting_flag_.get())
+ if (preempting_flag_)
pending_messages_.push(PendingMessage(messages_forwarded_to_channel_));
UpdatePreemptionState();
}
@@ -497,7 +497,7 @@ std::string GpuChannel::GetChannelName() {
#if defined(OS_POSIX)
int GpuChannel::TakeRendererFileDescriptor() {
- if (!channel_.get()) {
+ if (!channel_) {
NOTREACHED();
return -1;
}
@@ -561,7 +561,7 @@ bool GpuChannel::Send(IPC::Message* message) {
<< " with type " << message->type();
}
- if (!channel_.get()) {
+ if (!channel_) {
delete message;
return false;
}
@@ -603,7 +603,7 @@ void GpuChannel::StubSchedulingChanged(bool scheduled) {
bool a_stub_is_descheduled = num_stubs_descheduled_ > 0;
if (a_stub_is_descheduled != a_stub_was_descheduled) {
- if (preempting_flag_.get()) {
+ if (preempting_flag_) {
io_message_loop_->PostTask(
FROM_HERE,
base::Bind(&GpuChannelMessageFilter::UpdateStubSchedulingState,
@@ -654,7 +654,7 @@ void GpuChannel::CreateViewCommandBuffer(
watchdog_,
software_,
init_params.active_url));
- if (preempted_flag_.get())
+ if (preempted_flag_)
stub->SetPreemptByFlag(preempted_flag_);
router_.AddRoute(*route_id, stub.get());
stubs_.AddWithID(stub.release(), *route_id);
@@ -721,7 +721,7 @@ void GpuChannel::RemoveRoute(int32 route_id) {
}
gpu::PreemptionFlag* GpuChannel::GetPreemptionFlag() {
- if (!preempting_flag_.get()) {
+ if (!preempting_flag_) {
preempting_flag_ = new gpu::PreemptionFlag;
io_message_loop_->PostTask(
FROM_HERE, base::Bind(
@@ -742,7 +742,7 @@ void GpuChannel::SetPreemptByFlag(
}
GpuChannel::~GpuChannel() {
- if (preempting_flag_.get())
+ if (preempting_flag_)
preempting_flag_->Reset();
}
@@ -872,7 +872,7 @@ void GpuChannel::OnCreateOffscreenCommandBuffer(
watchdog_,
software_,
init_params.active_url));
- if (preempted_flag_.get())
+ if (preempted_flag_)
stub->SetPreemptByFlag(preempted_flag_);
router_.AddRoute(*route_id, stub.get());
stubs_.AddWithID(stub.release(), *route_id);
@@ -942,7 +942,7 @@ void GpuChannel::OnCollectRenderingStatsForSurface(
void GpuChannel::MessageProcessed() {
messages_processed_++;
- if (preempting_flag_.get()) {
+ if (preempting_flag_) {
io_message_loop_->PostTask(
FROM_HERE,
base::Bind(&GpuChannelMessageFilter::MessageProcessed,
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/common/gpu/gpu_channel_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698