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

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

Issue 2768143002: Back PaintRecord with PaintOpBuffer instead of SkPicture (Closed)
Patch Set: Fixup const function, add comment 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/skia_paint_canvas.h" 5 #include "cc/paint/skia_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_recorder.h" 9 #include "cc/paint/paint_recorder.h"
10 #include "third_party/skia/include/core/SkAnnotation.h" 10 #include "third_party/skia/include/core/SkAnnotation.h"
(...skipping 27 matching lines...) Expand all
38 } 38 }
39 39
40 int SkiaPaintCanvas::save() { 40 int SkiaPaintCanvas::save() {
41 return canvas_->save(); 41 return canvas_->save();
42 } 42 }
43 43
44 int SkiaPaintCanvas::saveLayer(const SkRect* bounds, const PaintFlags* flags) { 44 int SkiaPaintCanvas::saveLayer(const SkRect* bounds, const PaintFlags* flags) {
45 return canvas_->saveLayer(bounds, ToSkPaint(flags)); 45 return canvas_->saveLayer(bounds, ToSkPaint(flags));
46 } 46 }
47 47
48 int SkiaPaintCanvas::saveLayerAlpha(const SkRect* bounds, U8CPU alpha) { 48 int SkiaPaintCanvas::saveLayerAlpha(const SkRect* bounds, uint8_t alpha) {
49 return canvas_->saveLayerAlpha(bounds, alpha); 49 return canvas_->saveLayerAlpha(bounds, alpha);
50 } 50 }
51 51
52 void SkiaPaintCanvas::restore() { 52 void SkiaPaintCanvas::restore() {
53 canvas_->restore(); 53 canvas_->restore();
54 } 54 }
55 55
56 int SkiaPaintCanvas::getSaveCount() const { 56 int SkiaPaintCanvas::getSaveCount() const {
57 return canvas_->getSaveCount(); 57 return canvas_->getSaveCount();
58 } 58 }
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 break; 270 break;
271 case AnnotationType::NAMED_DESTINATION: { 271 case AnnotationType::NAMED_DESTINATION: {
272 SkPoint point = SkPoint::Make(rect.x(), rect.y()); 272 SkPoint point = SkPoint::Make(rect.x(), rect.y());
273 SkAnnotateNamedDestination(canvas_, point, data.get()); 273 SkAnnotateNamedDestination(canvas_, point, data.get());
274 break; 274 break;
275 } 275 }
276 } 276 }
277 } 277 }
278 278
279 } // namespace cc 279 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698