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

Side by Side Diff: sky/viewer/compositor/picture_serializer.cc

Issue 1213683004: Move //sky/compositor to //sky/viewer/compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « sky/viewer/compositor/picture_serializer.h ('k') | sky/viewer/compositor/rasterizer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sky/compositor/picture_serializer.h" 5 #include "sky/viewer/compositor/picture_serializer.h"
6 6
7 #include "third_party/skia/include/core/SkData.h" 7 #include "third_party/skia/include/core/SkData.h"
8 #include "third_party/skia/include/core/SkPixelSerializer.h" 8 #include "third_party/skia/include/core/SkPixelSerializer.h"
9 #include "third_party/skia/include/core/SkStream.h" 9 #include "third_party/skia/include/core/SkStream.h"
10 #include "ui/gfx/codec/png_codec.h" 10 #include "ui/gfx/codec/png_codec.h"
11 11
12 namespace sky { 12 namespace sky {
13 13
14 class PngPixelSerializer : public SkPixelSerializer { 14 class PngPixelSerializer : public SkPixelSerializer {
15 public: 15 public:
(...skipping 11 matching lines...) Expand all
27 } 27 }
28 }; 28 };
29 29
30 void SerializePicture(const char* file_name, SkPicture* picture) { 30 void SerializePicture(const char* file_name, SkPicture* picture) {
31 SkFILEWStream stream(file_name); 31 SkFILEWStream stream(file_name);
32 PngPixelSerializer serializer; 32 PngPixelSerializer serializer;
33 picture->serialize(&stream, &serializer); 33 picture->serialize(&stream, &serializer);
34 } 34 }
35 35
36 } // namespace sky 36 } // namespace sky
OLDNEW
« no previous file with comments | « sky/viewer/compositor/picture_serializer.h ('k') | sky/viewer/compositor/rasterizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698