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

Unified Diff: cc/paint/skia_paint_canvas.cc

Issue 2758413002: cc/paint: Remove PaintCanvas::peekPixels. (Closed)
Patch Set: canvas Created 3 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
Index: cc/paint/skia_paint_canvas.cc
diff --git a/cc/paint/skia_paint_canvas.cc b/cc/paint/skia_paint_canvas.cc
index 5928cecc78f5286773b8f5eb6770bf12cb2bd7f6..adb4f602c7ecb941e2f156e7f55654d5598fc221 100644
--- a/cc/paint/skia_paint_canvas.cc
+++ b/cc/paint/skia_paint_canvas.cc
@@ -22,6 +22,7 @@ SkiaPaintCanvas::SkiaPaintCanvas(const SkBitmap& bitmap,
const SkSurfaceProps& props)
: canvas_(new SkCanvas(bitmap, props)), owned_(canvas_) {}
+SkiaPaintCanvas::SkiaPaintCanvas(SkiaPaintCanvas&& other) = default;
SkiaPaintCanvas::~SkiaPaintCanvas() = default;
SkMetaData& SkiaPaintCanvas::getMetaData() {
@@ -40,10 +41,6 @@ SkISize SkiaPaintCanvas::getBaseLayerSize() const {
return canvas_->getBaseLayerSize();
}
-bool SkiaPaintCanvas::peekPixels(SkPixmap* pixmap) {
- return canvas_->peekPixels(pixmap);
-}
-
bool SkiaPaintCanvas::readPixels(const SkImageInfo& dest_info,
void* dest_pixels,
size_t dest_row_bytes,

Powered by Google App Engine
This is Rietveld 408576698