Index: cc/image_layer_updater.cc |
diff --git a/cc/image_layer_updater.cc b/cc/image_layer_updater.cc |
index 8f97359148071983e85012be66a8accc1a9c4815..9ba902e870b8490d434d60b4dcf442e144aa0a8b 100644 |
--- a/cc/image_layer_updater.cc |
+++ b/cc/image_layer_updater.cc |
@@ -3,10 +3,21 @@ |
// found in the LICENSE file. |
#include "cc/image_layer_updater.h" |
+#include "cc/prioritized_resource.h" |
#include "cc/resource_update_queue.h" |
namespace cc { |
+ImageLayerUpdater::Resource::Resource(ImageLayerUpdater* updater, scoped_ptr<PrioritizedResource> texture) |
+ : LayerUpdater::Resource(texture.Pass()) |
+ , m_updater(updater) |
+{ |
+} |
+ |
+ImageLayerUpdater::Resource::~Resource() |
+{ |
+} |
+ |
void ImageLayerUpdater::Resource::update(ResourceUpdateQueue& queue, const gfx::Rect& sourceRect, const gfx::Vector2d& destOffset, bool partialUpdate, RenderingStats&) |
{ |
m_updater->updateTexture(queue, texture(), sourceRect, destOffset, partialUpdate); |