Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 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 #include "ui/gfx/codec/codec_priv.h" | |
| 6 | |
| 7 namespace gfx { | |
| 8 | |
| 9 bool VectorWStream::write(const void* buffer, size_t size) { | |
| 10 const unsigned char* ptr = reinterpret_cast<const unsigned char*>(buffer); | |
| 11 dst_->insert(dst_->end(), ptr, ptr + size); | |
| 12 return true; | |
| 13 } | |
| 14 | |
| 15 size_t VectorWStream::bytesWritten() const { | |
| 16 return dst_->size(); | |
| 17 } | |
| 18 } | |
|
Elliot Glaysher
2017/06/16 19:08:11
Same thing with newline and namespace.
liyuqian
2017/06/23 13:54:25
Done.
| |
| OLD | NEW |