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

Unified Diff: ui/gl/gl_fence_arb.cc

Issue 496313004: Remove implicit conversions from scoped_refptr to T* in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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: ui/gl/gl_fence_arb.cc
diff --git a/ui/gl/gl_fence_arb.cc b/ui/gl/gl_fence_arb.cc
index b85434685a579a464b9503b621b8d056bccf0326..da13f107880d8ae0c996218af9d75fad46470932 100644
--- a/ui/gl/gl_fence_arb.cc
+++ b/ui/gl/gl_fence_arb.cc
@@ -33,7 +33,7 @@ bool GLFenceARB::HasCompleted() {
void GLFenceARB::ClientWait() {
DCHECK_EQ(GL_TRUE, glIsSync(sync_));
- if (!flush_event_ || flush_event_->IsSignaled()) {
+ if (!flush_event_.get() || flush_event_->IsSignaled()) {
glClientWaitSync(sync_, GL_SYNC_FLUSH_COMMANDS_BIT, GL_TIMEOUT_IGNORED);
} else {
LOG(ERROR) << "Trying to wait for uncommitted fence. Skipping...";
@@ -42,7 +42,7 @@ void GLFenceARB::ClientWait() {
void GLFenceARB::ServerWait() {
DCHECK_EQ(GL_TRUE, glIsSync(sync_));
- if (!flush_event_ || flush_event_->IsSignaled()) {
+ if (!flush_event_.get() || flush_event_->IsSignaled()) {
glWaitSync(sync_, 0, GL_TIMEOUT_IGNORED);
} else {
LOG(ERROR) << "Trying to wait for uncommitted fence. Skipping...";

Powered by Google App Engine
This is Rietveld 408576698