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

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

Issue 16293004: Update gpu/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/context_state.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 47f180ae03b6b793d20231235d862e0a4fdc693f..14a6d410662d7a47cfc8e91afdb73e3de25ba7c0 100644
--- a/gpu/command_buffer/service/context_state.h
+++ b/gpu/command_buffer/service/context_state.h
@@ -70,13 +70,13 @@ struct GPU_EXPORT TextureUnit {
}
void Unbind(TextureRef* 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 | « gpu/command_buffer/service/context_group.cc ('k') | gpu/command_buffer/service/context_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698