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

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

Issue 2881213002: cc: Remove deprecated DisplayItemList::Raster overload. (Closed)
Patch Set: update Created 3 years, 7 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/display_item_list_unittest.cc ('k') | cc/paint/skia_paint_canvas.cc » ('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/paint_op_buffer.h" 5 #include "cc/paint/paint_op_buffer.h"
6 6
7 #include "cc/paint/display_item_list.h" 7 #include "cc/paint/display_item_list.h"
8 #include "cc/paint/paint_record.h" 8 #include "cc/paint/paint_record.h"
9 #include "third_party/skia/include/core/SkAnnotation.h" 9 #include "third_party/skia/include/core/SkAnnotation.h"
10 10
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 SkCanvas* canvas, 257 SkCanvas* canvas,
258 const SkMatrix& original_ctm) { 258 const SkMatrix& original_ctm) {
259 auto* op = static_cast<const DrawColorOp*>(base_op); 259 auto* op = static_cast<const DrawColorOp*>(base_op);
260 canvas->drawColor(op->color, op->mode); 260 canvas->drawColor(op->color, op->mode);
261 } 261 }
262 262
263 void DrawDisplayItemListOp::Raster(const PaintOp* base_op, 263 void DrawDisplayItemListOp::Raster(const PaintOp* base_op,
264 SkCanvas* canvas, 264 SkCanvas* canvas,
265 const SkMatrix& original_ctm) { 265 const SkMatrix& original_ctm) {
266 auto* op = static_cast<const DrawDisplayItemListOp*>(base_op); 266 auto* op = static_cast<const DrawDisplayItemListOp*>(base_op);
267 op->list->Raster(canvas, nullptr); 267 op->list->Raster(canvas);
268 } 268 }
269 269
270 void DrawDRRectOp::RasterWithFlags(const PaintOpWithFlags* base_op, 270 void DrawDRRectOp::RasterWithFlags(const PaintOpWithFlags* base_op,
271 const PaintFlags* flags, 271 const PaintFlags* flags,
272 SkCanvas* canvas, 272 SkCanvas* canvas,
273 const SkMatrix& original_ctm) { 273 const SkMatrix& original_ctm) {
274 auto* op = static_cast<const DrawDRRectOp*>(base_op); 274 auto* op = static_cast<const DrawDRRectOp*>(base_op);
275 canvas->drawDRRect(op->outer, op->inner, ToSkPaint(*flags)); 275 canvas->drawDRRect(op->outer, op->inner, ToSkPaint(*flags));
276 } 276 }
277 277
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
708 return std::make_pair(op, skip); 708 return std::make_pair(op, skip);
709 } 709 }
710 710
711 void PaintOpBuffer::ShrinkToFit() { 711 void PaintOpBuffer::ShrinkToFit() {
712 if (!used_ || used_ == reserved_) 712 if (!used_ || used_ == reserved_)
713 return; 713 return;
714 ReallocBuffer(used_); 714 ReallocBuffer(used_);
715 } 715 }
716 716
717 } // namespace cc 717 } // namespace cc
OLDNEW
« no previous file with comments | « cc/paint/display_item_list_unittest.cc ('k') | cc/paint/skia_paint_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698