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

Side by Side Diff: ui/gfx/codec/codec_priv.cc

Issue 2944633002: Use SkPngEncoder in gfx jpeg_codec (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
(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.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698