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

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

Issue 2875343002: cc: fix for MSAA veto. (Closed)
Patch Set: Windows fix. 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 | « no previous file | cc/paint/paint_op_buffer.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 #ifndef CC_PAINT_PAINT_OP_BUFFER_H_ 5 #ifndef CC_PAINT_PAINT_OP_BUFFER_H_
6 #define CC_PAINT_PAINT_OP_BUFFER_H_ 6 #define CC_PAINT_PAINT_OP_BUFFER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 struct CC_PAINT_EXPORT DrawRecordOp final : PaintOp { 565 struct CC_PAINT_EXPORT DrawRecordOp final : PaintOp {
566 static constexpr PaintOpType kType = PaintOpType::DrawRecord; 566 static constexpr PaintOpType kType = PaintOpType::DrawRecord;
567 static constexpr bool kIsDrawOp = true; 567 static constexpr bool kIsDrawOp = true;
568 explicit DrawRecordOp(sk_sp<const PaintRecord> record); 568 explicit DrawRecordOp(sk_sp<const PaintRecord> record);
569 ~DrawRecordOp(); 569 ~DrawRecordOp();
570 static void Raster(const PaintOp* op, 570 static void Raster(const PaintOp* op,
571 SkCanvas* canvas, 571 SkCanvas* canvas,
572 const SkMatrix& original_ctm); 572 const SkMatrix& original_ctm);
573 size_t AdditionalBytesUsed() const; 573 size_t AdditionalBytesUsed() const;
574 bool HasDiscardableImages() const; 574 bool HasDiscardableImages() const;
575 int CountSlowPaths() const;
575 576
576 sk_sp<const PaintRecord> record; 577 sk_sp<const PaintRecord> record;
577 }; 578 };
578 579
579 struct CC_PAINT_EXPORT DrawRectOp final : PaintOpWithFlags { 580 struct CC_PAINT_EXPORT DrawRectOp final : PaintOpWithFlags {
580 static constexpr PaintOpType kType = PaintOpType::DrawRect; 581 static constexpr PaintOpType kType = PaintOpType::DrawRect;
581 static constexpr bool kIsDrawOp = true; 582 static constexpr bool kIsDrawOp = true;
582 DrawRectOp(const SkRect& rect, const PaintFlags& flags) 583 DrawRectOp(const SkRect& rect, const PaintFlags& flags)
583 : PaintOpWithFlags(flags), rect(rect) {} 584 : PaintOpWithFlags(flags), rect(rect) {}
584 static void Raster(const PaintOp* op, 585 static void Raster(const PaintOp* op,
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 size_t subrecord_bytes_used_ = 0; 969 size_t subrecord_bytes_used_ = 0;
969 bool has_discardable_images_ = false; 970 bool has_discardable_images_ = false;
970 SkRect cull_rect_; 971 SkRect cull_rect_;
971 972
972 DISALLOW_COPY_AND_ASSIGN(PaintOpBuffer); 973 DISALLOW_COPY_AND_ASSIGN(PaintOpBuffer);
973 }; 974 };
974 975
975 } // namespace cc 976 } // namespace cc
976 977
977 #endif // CC_PAINT_PAINT_OP_BUFFER_H_ 978 #endif // CC_PAINT_PAINT_OP_BUFFER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/paint/paint_op_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698