Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_PAINT_DISCARDABLE_IMAGE_STORE_H_ | |
| 6 #define CC_PAINT_DISCARDABLE_IMAGE_STORE_H_ | |
| 7 | |
| 8 #include "third_party/skia/include/core/SkCanvas.h" | |
| 9 #include "third_party/skia/include/core/SkMatrix.h" | |
| 10 #include "third_party/skia/include/core/SkRect.h" | |
| 11 | |
| 12 namespace cc { | |
| 13 class PaintFlags; | |
| 14 class PaintImage; | |
| 15 | |
| 16 class DiscardableImageStore { | |
|
vmpstr
2017/04/27 16:28:54
Why don't we just make this a concrete class?
Khushal
2017/04/27 22:06:02
Done.
| |
| 17 public: | |
| 18 virtual ~DiscardableImageStore() {} | |
| 19 | |
| 20 virtual void AddImage(const PaintImage& paint_image, | |
| 21 const SkRect& src, | |
| 22 const SkRect& rect, | |
| 23 const SkMatrix* local_matrix, | |
| 24 const PaintFlags& flags) = 0; | |
| 25 | |
| 26 // This canvas is used only for tracking transform/clip/filter state from the | |
| 27 // non-drawing ops. | |
| 28 virtual SkCanvas* NoDrawCanvas() = 0; | |
| 29 }; | |
| 30 | |
| 31 } // namespace cc | |
| 32 | |
| 33 #endif // CC_PAINT_DISCARDABLE_IMAGE_STORE_H_ | |
| OLD | NEW |