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

Side by Side Diff: cc/paint/skia_paint_canvas.cc

Issue 2822263004: Remove PaintCanvas::writePixels (Closed)
Patch Set: rm-writepixels: rmdcheck Created 3 years, 8 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
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 #include "cc/paint/paint_canvas.h" 5 #include "cc/paint/paint_canvas.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "cc/paint/display_item_list.h" 8 #include "cc/paint/display_item_list.h"
9 #include "cc/paint/paint_record.h" 9 #include "cc/paint/paint_record.h"
10 #include "cc/paint/paint_recorder.h" 10 #include "cc/paint/paint_recorder.h"
(...skipping 20 matching lines...) Expand all
31 } 31 }
32 32
33 SkImageInfo SkiaPaintCanvas::imageInfo() const { 33 SkImageInfo SkiaPaintCanvas::imageInfo() const {
34 return canvas_->imageInfo(); 34 return canvas_->imageInfo();
35 } 35 }
36 36
37 void SkiaPaintCanvas::flush() { 37 void SkiaPaintCanvas::flush() {
38 canvas_->flush(); 38 canvas_->flush();
39 } 39 }
40 40
41 bool SkiaPaintCanvas::writePixels(const SkImageInfo& info,
42 const void* pixels,
43 size_t row_bytes,
44 int x,
45 int y) {
46 return canvas_->writePixels(info, pixels, row_bytes, x, y);
47 }
48
49 int SkiaPaintCanvas::save() { 41 int SkiaPaintCanvas::save() {
50 return canvas_->save(); 42 return canvas_->save();
51 } 43 }
52 44
53 int SkiaPaintCanvas::saveLayer(const SkRect* bounds, const PaintFlags* flags) { 45 int SkiaPaintCanvas::saveLayer(const SkRect* bounds, const PaintFlags* flags) {
54 return canvas_->saveLayer(bounds, ToSkPaint(flags)); 46 return canvas_->saveLayer(bounds, ToSkPaint(flags));
55 } 47 }
56 48
57 int SkiaPaintCanvas::saveLayerAlpha(const SkRect* bounds, U8CPU alpha) { 49 int SkiaPaintCanvas::saveLayerAlpha(const SkRect* bounds, U8CPU alpha) {
58 return canvas_->saveLayerAlpha(bounds, alpha); 50 return canvas_->saveLayerAlpha(bounds, alpha);
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 break; 284 break;
293 case AnnotationType::NAMED_DESTINATION: { 285 case AnnotationType::NAMED_DESTINATION: {
294 SkPoint point = SkPoint::Make(rect.x(), rect.y()); 286 SkPoint point = SkPoint::Make(rect.x(), rect.y());
295 SkAnnotateNamedDestination(canvas_, point, data.get()); 287 SkAnnotateNamedDestination(canvas_, point, data.get());
296 break; 288 break;
297 } 289 }
298 } 290 }
299 } 291 }
300 292
301 } // namespace cc 293 } // namespace cc
OLDNEW
« no previous file with comments | « cc/paint/skia_paint_canvas.h ('k') | third_party/WebKit/Source/platform/graphics/ImageBufferSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698