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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/PictureSnapshot.h

Issue 2218533002: Backporting JSONValues from protocol::Values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switch back to partition allocator Created 4 years, 4 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
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 FloatPoint layerOffset; 52 FloatPoint layerOffset;
53 Vector<char> data; 53 Vector<char> data;
54 }; 54 };
55 55
56 static PassRefPtr<PictureSnapshot> load(const Vector<RefPtr<TilePictureStrea m>>&); 56 static PassRefPtr<PictureSnapshot> load(const Vector<RefPtr<TilePictureStrea m>>&);
57 57
58 PictureSnapshot(PassRefPtr<const SkPicture>); 58 PictureSnapshot(PassRefPtr<const SkPicture>);
59 59
60 std::unique_ptr<Vector<char>> replay(unsigned fromStep = 0, unsigned toStep = 0, double scale = 1.0) const; 60 std::unique_ptr<Vector<char>> replay(unsigned fromStep = 0, unsigned toStep = 0, double scale = 1.0) const;
61 std::unique_ptr<Timings> profile(unsigned minIterations, double minDuration, const FloatRect* clipRect) const; 61 std::unique_ptr<Timings> profile(unsigned minIterations, double minDuration, const FloatRect* clipRect) const;
62 PassRefPtr<JSONArray> snapshotCommandLog() const; 62 std::unique_ptr<JSONArray> snapshotCommandLog() const;
63 bool isEmpty() const; 63 bool isEmpty() const;
64 64
65 private: 65 private:
66 std::unique_ptr<SkBitmap> createBitmap() const; 66 std::unique_ptr<SkBitmap> createBitmap() const;
67 67
68 RefPtr<const SkPicture> m_picture; 68 RefPtr<const SkPicture> m_picture;
69 }; 69 };
70 70
71 } // namespace blink 71 } // namespace blink
72 72
73 #endif // PictureSnapshot_h 73 #endif // PictureSnapshot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698