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

Side by Side Diff: cc/debug/picture_debug_util.cc

Issue 1610023003: Revert of Allow std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « base/strings/string_piece.h ('k') | cc/layers/delegated_renderer_layer_impl.cc » ('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 "cc/debug/picture_debug_util.h" 5 #include "cc/debug/picture_debug_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits>
10 #include <vector> 9 #include <vector>
11 10
12 #include "base/base64.h" 11 #include "base/base64.h"
13 #include "base/logging.h" 12 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
15 #include "third_party/skia/include/core/SkBitmap.h" 14 #include "third_party/skia/include/core/SkBitmap.h"
16 #include "third_party/skia/include/core/SkData.h" 15 #include "third_party/skia/include/core/SkData.h"
17 #include "third_party/skia/include/core/SkImageInfo.h" 16 #include "third_party/skia/include/core/SkImageInfo.h"
18 #include "third_party/skia/include/core/SkPicture.h" 17 #include "third_party/skia/include/core/SkPicture.h"
19 #include "third_party/skia/include/core/SkPixelSerializer.h" 18 #include "third_party/skia/include/core/SkPixelSerializer.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 picture->serialize(&stream, &serializer); 70 picture->serialize(&stream, &serializer);
72 71
73 size_t serialized_size = stream.bytesWritten(); 72 size_t serialized_size = stream.bytesWritten();
74 scoped_ptr<char[]> serialized_picture(new char[serialized_size]); 73 scoped_ptr<char[]> serialized_picture(new char[serialized_size]);
75 stream.copyTo(serialized_picture.get()); 74 stream.copyTo(serialized_picture.get());
76 base::Base64Encode(std::string(serialized_picture.get(), serialized_size), 75 base::Base64Encode(std::string(serialized_picture.get(), serialized_size),
77 output); 76 output);
78 } 77 }
79 78
80 } // namespace cc 79 } // namespace cc
OLDNEW
« no previous file with comments | « base/strings/string_piece.h ('k') | cc/layers/delegated_renderer_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698