Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 SkDataSegmentReader_h | |
| 6 #define SkDataSegmentReader_h | |
| 7 | |
| 8 #include "platform/image-decoders/SegmentReader.h" | |
| 9 #include "skia/ext/refptr.h" | |
| 10 #include "third_party/skia/include/core/SkData.h" | |
| 11 #include "wtf/Noncopyable.h" | |
| 12 #include "wtf/PassRefPtr.h" | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 // Interface for ImageDecoder to read an SkData | |
|
Peter Kasting
2016/03/23 02:42:59
Nit: Period
| |
| 17 class SkDataSegmentReader final : public SegmentReader { | |
| 18 WTF_MAKE_NONCOPYABLE(SkDataSegmentReader); | |
| 19 public: | |
| 20 SkDataSegmentReader(PassRefPtr<SkData>); | |
| 21 size_t size() const override; | |
| 22 size_t getSomeData(const char*& data, size_t position) const override; | |
| 23 PassRefPtr<SkData> getAsSkData() const override; | |
| 24 private: | |
| 25 skia::RefPtr<SkData> m_data; | |
| 26 }; | |
| 27 | |
| 28 } // namespace blink | |
| 29 #endif // SkDataSegmentReader_h | |
| OLD | NEW |