Merge "Refcounting is hard"
diff --git a/libs/hwui/DeferredLayerUpdater.cpp b/libs/hwui/DeferredLayerUpdater.cpp
index ed05d04..5d3d393 100644
--- a/libs/hwui/DeferredLayerUpdater.cpp
+++ b/libs/hwui/DeferredLayerUpdater.cpp
@@ -31,7 +31,6 @@
         , mLayer(layer)
         , mRenderer(renderer)
         , mCaches(Caches::getInstance()) {
-    mCaches.resourceCache.incrementRefcount(mLayer);
     mWidth = mLayer->layer.getWidth();
     mHeight = mLayer->layer.getHeight();
     mBlend = mLayer->isBlend();
diff --git a/libs/hwui/DeferredLayerUpdater.h b/libs/hwui/DeferredLayerUpdater.h
index 0350eef..9800c2f 100644
--- a/libs/hwui/DeferredLayerUpdater.h
+++ b/libs/hwui/DeferredLayerUpdater.h
@@ -34,6 +34,8 @@
 // of a render pass
 class DeferredLayerUpdater {
 public:
+    // Note that DeferredLayerUpdater assumes it is taking ownership of the layer
+    // and will not call incrementRef on it as a result.
     ANDROID_API DeferredLayerUpdater(Layer* layer, OpenGLRenderer* renderer = 0);
     ANDROID_API ~DeferredLayerUpdater();