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

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

Issue 2820133005: Revert of Back PaintRecord with PaintOpBuffer instead of SkPicture (Closed)
Patch Set: 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
« no previous file with comments | « cc/paint/skia_paint_canvas.h ('k') | cc/test/test_skcanvas.h » ('j') | no next file with comments »
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 #include "cc/paint/skia_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"
11 #include "third_party/skia/include/core/SkAnnotation.h" 11 #include "third_party/skia/include/core/SkAnnotation.h"
12 #include "third_party/skia/include/core/SkMetaData.h" 12 #include "third_party/skia/include/core/SkMetaData.h"
13 #include "third_party/skia/include/utils/SkNWayCanvas.h" 13 #include "third_party/skia/include/utils/SkNWayCanvas.h"
14 14
15 namespace cc { 15 namespace cc {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 } 51 }
52 52
53 int SkiaPaintCanvas::save() { 53 int SkiaPaintCanvas::save() {
54 return canvas_->save(); 54 return canvas_->save();
55 } 55 }
56 56
57 int SkiaPaintCanvas::saveLayer(const SkRect* bounds, const PaintFlags* flags) { 57 int SkiaPaintCanvas::saveLayer(const SkRect* bounds, const PaintFlags* flags) {
58 return canvas_->saveLayer(bounds, ToSkPaint(flags)); 58 return canvas_->saveLayer(bounds, ToSkPaint(flags));
59 } 59 }
60 60
61 int SkiaPaintCanvas::saveLayerAlpha(const SkRect* bounds, uint8_t alpha) { 61 int SkiaPaintCanvas::saveLayerAlpha(const SkRect* bounds, U8CPU alpha) {
62 return canvas_->saveLayerAlpha(bounds, alpha); 62 return canvas_->saveLayerAlpha(bounds, alpha);
63 } 63 }
64 64
65 void SkiaPaintCanvas::restore() { 65 void SkiaPaintCanvas::restore() {
66 canvas_->restore(); 66 canvas_->restore();
67 } 67 }
68 68
69 int SkiaPaintCanvas::getSaveCount() const { 69 int SkiaPaintCanvas::getSaveCount() const {
70 return canvas_->getSaveCount(); 70 return canvas_->getSaveCount();
71 } 71 }
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 break; 302 break;
303 case AnnotationType::NAMED_DESTINATION: { 303 case AnnotationType::NAMED_DESTINATION: {
304 SkPoint point = SkPoint::Make(rect.x(), rect.y()); 304 SkPoint point = SkPoint::Make(rect.x(), rect.y());
305 SkAnnotateNamedDestination(canvas_, point, data.get()); 305 SkAnnotateNamedDestination(canvas_, point, data.get());
306 break; 306 break;
307 } 307 }
308 } 308 }
309 } 309 }
310 310
311 } // namespace cc 311 } // namespace cc
OLDNEW
« no previous file with comments | « cc/paint/skia_paint_canvas.h ('k') | cc/test/test_skcanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698