Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: cc/resources/skpicture_content_layer_updater.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/skpicture_content_layer_updater.h ('k') | cc/resources/software_rasterizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index ace97a4e8ed827e2c02c8b0d4139d9eed6b53783..0000000000000000000000000000000000000000
--- a/cc/resources/skpicture_content_layer_updater.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/resources/skpicture_content_layer_updater.h"
-
-#include "base/trace_event/trace_event.h"
-#include "cc/debug/rendering_stats_instrumentation.h"
-#include "cc/resources/layer_painter.h"
-#include "cc/resources/prioritized_resource.h"
-#include "cc/resources/resource_update_queue.h"
-#include "third_party/skia/include/core/SkCanvas.h"
-#include "third_party/skia/include/core/SkPictureRecorder.h"
-
-namespace cc {
-
-SkPictureContentLayerUpdater::SkPictureContentLayerUpdater(
- scoped_ptr<LayerPainter> painter,
- int layer_id)
- : ContentLayerUpdater(painter.Pass(), layer_id) {
-}
-
-SkPictureContentLayerUpdater::~SkPictureContentLayerUpdater() {}
-
-void SkPictureContentLayerUpdater::PrepareToUpdate(
- const gfx::Size& content_size,
- const gfx::Rect& paint_rect,
- const gfx::Size& tile_size,
- float contents_width_scale,
- float contents_height_scale) {
- SkPictureRecorder recorder;
- SkCanvas* canvas =
- recorder.beginRecording(paint_rect.width(), paint_rect.height(), NULL, 0);
- DCHECK_EQ(paint_rect.width(), canvas->getBaseLayerSize().width());
- DCHECK_EQ(paint_rect.height(), canvas->getBaseLayerSize().height());
- PaintContents(canvas,
- content_size,
- paint_rect,
- contents_width_scale,
- contents_height_scale);
- picture_ = skia::AdoptRef(recorder.endRecording());
-}
-
-void SkPictureContentLayerUpdater::DrawPicture(SkCanvas* canvas) {
- TRACE_EVENT0("cc", "SkPictureContentLayerUpdater::DrawPicture");
- if (picture_)
- canvas->drawPicture(picture_.get());
-}
-
-} // namespace cc
« no previous file with comments | « cc/resources/skpicture_content_layer_updater.h ('k') | cc/resources/software_rasterizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698