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

Unified Diff: chrome/renderer/pepper_platform_context_3d_impl.cc

Issue 6674006: Coverity Fixlets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit squash. Created 9 years, 9 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 | « chrome/renderer/net/predictor_queue.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/pepper_platform_context_3d_impl.cc
diff --git a/chrome/renderer/pepper_platform_context_3d_impl.cc b/chrome/renderer/pepper_platform_context_3d_impl.cc
index 47a0958c525c6b8ddfe7df9fa5231981d431dc8f..485de2f0fbd30524c3fd2ed880a11f01cdbac978 100644
--- a/chrome/renderer/pepper_platform_context_3d_impl.cc
+++ b/chrome/renderer/pepper_platform_context_3d_impl.cc
@@ -73,11 +73,10 @@ bool PlatformContext3DImpl::Init() {
"*",
attribs,
parent_texture_id_);
- command_buffer_->SetChannelErrorCallback(callback_factory_.NewCallback(
- &PlatformContext3DImpl::OnContextLost));
-
if (!command_buffer_)
return false;
+ command_buffer_->SetChannelErrorCallback(callback_factory_.NewCallback(
+ &PlatformContext3DImpl::OnContextLost));
return true;
}
@@ -112,4 +111,3 @@ void PlatformContext3DImpl::OnContextLost() {
}
#endif // ENABLE_GPU
-
« no previous file with comments | « chrome/renderer/net/predictor_queue.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698