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

Side by Side Diff: cc/paint/paint_canvas.h

Issue 2758413002: cc/paint: Remove PaintCanvas::peekPixels. (Closed)
Patch Set: update 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 unified diff | Download patch
« no previous file with comments | « no previous file | cc/paint/skia_paint_canvas.h » ('j') | ui/gfx/canvas.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_PAINT_PAINT_CANVAS_H_ 5 #ifndef CC_PAINT_PAINT_CANVAS_H_
6 #define CC_PAINT_PAINT_CANVAS_H_ 6 #define CC_PAINT_PAINT_CANVAS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // TODO(enne): It would be nice to get rid of flush() entirely, as it 28 // TODO(enne): It would be nice to get rid of flush() entirely, as it
29 // doesn't really make sense for recording. However, this gets used by 29 // doesn't really make sense for recording. However, this gets used by
30 // SkCanvasVideoRenderer which takes a PaintCanvas to paint both 30 // SkCanvasVideoRenderer which takes a PaintCanvas to paint both
31 // software and hardware video. This is super entangled with ImageBuffer 31 // software and hardware video. This is super entangled with ImageBuffer
32 // and canvas/video painting in Blink where the same paths are used for 32 // and canvas/video painting in Blink where the same paths are used for
33 // both recording and gpu work. 33 // both recording and gpu work.
34 virtual void flush() = 0; 34 virtual void flush() = 0;
35 35
36 virtual SkISize getBaseLayerSize() const = 0; 36 virtual SkISize getBaseLayerSize() const = 0;
37 virtual bool peekPixels(SkPixmap* pixmap) = 0;
38 virtual bool readPixels(const SkImageInfo& dest_info, 37 virtual bool readPixels(const SkImageInfo& dest_info,
39 void* dest_pixels, 38 void* dest_pixels,
40 size_t dest_row_bytes, 39 size_t dest_row_bytes,
41 int src_x, 40 int src_x,
42 int src_y) = 0; 41 int src_y) = 0;
43 virtual bool readPixels(SkBitmap* bitmap, int src_x, int src_y) = 0; 42 virtual bool readPixels(SkBitmap* bitmap, int src_x, int src_y) = 0;
44 virtual bool readPixels(const SkIRect& srcRect, SkBitmap* bitmap) = 0; 43 virtual bool readPixels(const SkIRect& srcRect, SkBitmap* bitmap) = 0;
45 virtual bool writePixels(const SkImageInfo& info, 44 virtual bool writePixels(const SkImageInfo& info,
46 const void* pixels, 45 const void* pixels,
47 size_t row_bytes, 46 size_t row_bytes,
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 const SkPoint& point, 264 const SkPoint& point,
266 SkData* data); 265 SkData* data);
267 266
268 CC_PAINT_EXPORT void PaintCanvasAnnotateLinkToDestination(PaintCanvas* canvas, 267 CC_PAINT_EXPORT void PaintCanvasAnnotateLinkToDestination(PaintCanvas* canvas,
269 const SkRect& rect, 268 const SkRect& rect,
270 SkData* data); 269 SkData* data);
271 270
272 } // namespace cc 271 } // namespace cc
273 272
274 #endif // CC_PAINT_PAINT_CANVAS_H_ 273 #endif // CC_PAINT_PAINT_CANVAS_H_
OLDNEW
« no previous file with comments | « no previous file | cc/paint/skia_paint_canvas.h » ('j') | ui/gfx/canvas.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698