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

Unified Diff: gpu/command_buffer/service/context_state.h

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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 | « google_apis/gaia/gaia_oauth_client.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/context_state.h
diff --git a/gpu/command_buffer/service/context_state.h b/gpu/command_buffer/service/context_state.h
index 6997d601a049efc87456e7f82312c42b461e217b..bc4eff4f764a1504fbc33ea3ad5b478dc70732e0 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -64,13 +64,13 @@ struct GPU_EXPORT TextureUnit {
}
void Unbind(TextureManager::TextureInfo* texture) {
- if (bound_texture_2d == texture) {
+ if (bound_texture_2d.get() == texture) {
bound_texture_2d = NULL;
}
- if (bound_texture_cube_map == texture) {
+ if (bound_texture_cube_map.get() == texture) {
bound_texture_cube_map = NULL;
}
- if (bound_texture_external_oes == texture) {
+ if (bound_texture_external_oes.get() == texture) {
bound_texture_external_oes = NULL;
}
}
« no previous file with comments | « google_apis/gaia/gaia_oauth_client.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698