OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PaintProperties_h |
| 6 #define PaintProperties_h |
| 7 |
| 8 #include <iosfwd> |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 // The set of paint properties applying to a |PaintChunk|. |
| 13 // In particular, this does not mean properties like background-color, but |
| 14 // rather the hierarchy of transforms, clips, effects, etc. that apply to a |
| 15 // contiguous chunk of drawings. |
| 16 struct PaintProperties { |
| 17 // TODO(jbroman): Add actual properties. |
| 18 }; |
| 19 |
| 20 inline bool operator==(const PaintProperties&, const PaintProperties&) |
| 21 { |
| 22 return true; |
| 23 } |
| 24 |
| 25 inline bool operator!=(const PaintProperties& a, const PaintProperties& b) |
| 26 { |
| 27 return !(a == b); |
| 28 } |
| 29 |
| 30 // Redeclared here to avoid ODR issues. |
| 31 // See platform/testing/PaintPrinters.h. |
| 32 void PrintTo(const PaintProperties&, std::ostream*); |
| 33 |
| 34 } // namespace blink |
| 35 |
| 36 #endif // PaintProperties_h |
OLD | NEW |