| Index: cc/resources/skpicture_content_layer_updater.cc
|
| diff --git a/cc/resources/skpicture_content_layer_updater.cc b/cc/resources/skpicture_content_layer_updater.cc
|
| index bfa6d56cd040f63ef1a7abd75250231d5c63baa4..3db8726ecc720c08d3cb2530d06f415cba765198 100644
|
| --- a/cc/resources/skpicture_content_layer_updater.cc
|
| +++ b/cc/resources/skpicture_content_layer_updater.cc
|
| @@ -13,22 +13,6 @@
|
|
|
| namespace cc {
|
|
|
| -SkPictureContentLayerUpdater::Resource::Resource(
|
| - SkPictureContentLayerUpdater* updater,
|
| - scoped_ptr<PrioritizedResource> texture)
|
| - : LayerUpdater::Resource(texture.Pass()), updater_(updater) {}
|
| -
|
| -SkPictureContentLayerUpdater::Resource::~Resource() {}
|
| -
|
| -void SkPictureContentLayerUpdater::Resource::Update(ResourceUpdateQueue* queue,
|
| - gfx::Rect source_rect,
|
| - gfx::Vector2d dest_offset,
|
| - bool partial_update,
|
| - RenderingStats*) {
|
| - updater_->UpdateTexture(
|
| - queue, texture(), source_rect, dest_offset, partial_update);
|
| -}
|
| -
|
| SkPictureContentLayerUpdater::SkPictureContentLayerUpdater(
|
| scoped_ptr<LayerPainter> painter,
|
| RenderingStatsInstrumentation* stats_instrumentation,
|
| @@ -38,23 +22,6 @@ SkPictureContentLayerUpdater::SkPictureContentLayerUpdater(
|
|
|
| SkPictureContentLayerUpdater::~SkPictureContentLayerUpdater() {}
|
|
|
| -scoped_refptr<SkPictureContentLayerUpdater>
|
| -SkPictureContentLayerUpdater::Create(
|
| - scoped_ptr<LayerPainter> painter,
|
| - RenderingStatsInstrumentation* stats_instrumentation,
|
| - int layer_id) {
|
| - return make_scoped_refptr(
|
| - new SkPictureContentLayerUpdater(painter.Pass(),
|
| - stats_instrumentation,
|
| - layer_id));
|
| -}
|
| -
|
| -scoped_ptr<LayerUpdater::Resource> SkPictureContentLayerUpdater::CreateResource(
|
| - PrioritizedResourceManager* manager) {
|
| - return scoped_ptr<LayerUpdater::Resource>(
|
| - new Resource(this, PrioritizedResource::Create(manager)));
|
| -}
|
| -
|
| void SkPictureContentLayerUpdater::PrepareToUpdate(
|
| gfx::Rect content_rect,
|
| gfx::Size,
|
| @@ -87,19 +54,6 @@ void SkPictureContentLayerUpdater::DrawPicture(SkCanvas* canvas) {
|
| canvas->drawPicture(picture_);
|
| }
|
|
|
| -void SkPictureContentLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue,
|
| - PrioritizedResource* texture,
|
| - gfx::Rect source_rect,
|
| - gfx::Vector2d dest_offset,
|
| - bool partial_update) {
|
| - ResourceUpdate upload = ResourceUpdate::CreateFromPicture(
|
| - texture, &picture_, content_rect(), source_rect, dest_offset);
|
| - if (partial_update)
|
| - queue->AppendPartialUpload(upload);
|
| - else
|
| - queue->AppendFullUpload(upload);
|
| -}
|
| -
|
| void SkPictureContentLayerUpdater::SetOpaque(bool opaque) {
|
| layer_is_opaque_ = opaque;
|
| }
|
|
|