Bug 1325511 - Mark as used sooner. r=mtseng, a=jcristau
authorMilan Sreckovic <milan@mozilla.com>
Mon, 06 Feb 2017 19:30:54 -0500
changeset 376055 f1badafad1266abed3237f0f376b6d6bb60dbd11
parent 376054 cc92cc22d42a46b8f82269234b04b73783844ed5
child 376056 468bfd99fb224469babf17b156e53fbe4b23e854
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmtseng, jcristau
bugs1325511
milestone53.0a2
Bug 1325511 - Mark as used sooner. r=mtseng, a=jcristau
gfx/angle/src/libANGLE/renderer/d3d/d3d11/Buffer11.cpp
--- a/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Buffer11.cpp
+++ b/gfx/angle/src/libANGLE/renderer/d3d/d3d11/Buffer11.cpp
@@ -687,16 +687,17 @@ gl::ErrorOrResult<Buffer11::BufferStorag
     }
 
     // resize buffer
     if (newStorage->getSize() < mSize)
     {
         ANGLE_TRY(newStorage->resize(mSize, true));
     }
 
+    mIdleness[usage] = 0;
     ANGLE_TRY(updateBufferStorage(newStorage, 0, mSize));
     ANGLE_TRY(markBufferUsage(usage));
 
     return newStorage;
 }
 
 Buffer11::BufferStorage *Buffer11::allocateStorage(BufferUsage usage)
 {