| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|