Bug 1073081 - Fix an incorrect comparison between enums of different types. r=nical
authorBotond Ballo <botond@mozilla.com>
Mon, 24 Nov 2014 20:00:40 -0500
changeset 219639 8df0ab3b426ac963dc324f9df715462c9d016ee9
parent 219638 3ebcec626dcda164b64a88e6fd34354765ba082a
child 219640 3cc200eb27bc2ad1533ac5a496fd86a3ad227478
push id10400
push userryanvm@gmail.com
push dateMon, 15 Dec 2014 18:54:54 +0000
treeherderfx-team@5d6e0d038f95 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersnical
bugs1073081
milestone37.0a1
Bug 1073081 - Fix an incorrect comparison between enums of different types. r=nical
gfx/layers/opengl/GrallocTextureHost.cpp
--- a/gfx/layers/opengl/GrallocTextureHost.cpp
+++ b/gfx/layers/opengl/GrallocTextureHost.cpp
@@ -317,17 +317,17 @@ GrallocTextureHostOGL::DeallocateSharedD
     mTilingTextureSource = nullptr;
   }
   if (mGLTextureSource) {
     mGLTextureSource = nullptr;
   }
 
   DestroyEGLImage();
 
-  if (mGrallocHandle.buffer().type() != SurfaceDescriptor::Tnull_t) {
+  if (mGrallocHandle.buffer().type() != MaybeMagicGrallocBufferHandle::Tnull_t) {
     MaybeMagicGrallocBufferHandle handle = mGrallocHandle.buffer();
     base::ProcessId owner;
     if (handle.type() == MaybeMagicGrallocBufferHandle::TGrallocBufferRef) {
       owner = handle.get_GrallocBufferRef().mOwner;
     }
     else {
       owner = handle.get_MagicGrallocBufferHandle().mRef.mOwner;
     }