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

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

Issue 1550563002: Blink Platform: Remove time functions from Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merrrge agaaain. Created 4 years, 10 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 24 matching lines...) Expand all
35 #include "platform/graphics/LoggingCanvas.h" 35 #include "platform/graphics/LoggingCanvas.h"
36 #include "platform/graphics/ProfilingCanvas.h" 36 #include "platform/graphics/ProfilingCanvas.h"
37 #include "platform/graphics/ReplayingCanvas.h" 37 #include "platform/graphics/ReplayingCanvas.h"
38 #include "platform/graphics/skia/ImagePixelLocker.h" 38 #include "platform/graphics/skia/ImagePixelLocker.h"
39 #include "platform/image-decoders/ImageDecoder.h" 39 #include "platform/image-decoders/ImageDecoder.h"
40 #include "platform/image-decoders/ImageFrame.h" 40 #include "platform/image-decoders/ImageFrame.h"
41 #include "platform/image-encoders/skia/PNGImageEncoder.h" 41 #include "platform/image-encoders/skia/PNGImageEncoder.h"
42 #include "third_party/skia/include/core/SkImage.h" 42 #include "third_party/skia/include/core/SkImage.h"
43 #include "third_party/skia/include/core/SkPictureRecorder.h" 43 #include "third_party/skia/include/core/SkPictureRecorder.h"
44 #include "third_party/skia/include/core/SkStream.h" 44 #include "third_party/skia/include/core/SkStream.h"
45 #include "wtf/CurrentTime.h"
45 #include "wtf/HexNumber.h" 46 #include "wtf/HexNumber.h"
46 #include "wtf/text/Base64.h" 47 #include "wtf/text/Base64.h"
47 #include "wtf/text/TextEncoding.h" 48 #include "wtf/text/TextEncoding.h"
48 49
49 namespace blink { 50 namespace blink {
50 51
51 PictureSnapshot::PictureSnapshot(PassRefPtr<const SkPicture> picture) 52 PictureSnapshot::PictureSnapshot(PassRefPtr<const SkPicture> picture)
52 : m_picture(picture) 53 : m_picture(picture)
53 { 54 {
54 } 55 }
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 163
163 PassRefPtr<JSONArray> PictureSnapshot::snapshotCommandLog() const 164 PassRefPtr<JSONArray> PictureSnapshot::snapshotCommandLog() const
164 { 165 {
165 const SkIRect bounds = m_picture->cullRect().roundOut(); 166 const SkIRect bounds = m_picture->cullRect().roundOut();
166 LoggingCanvas canvas(bounds.width(), bounds.height()); 167 LoggingCanvas canvas(bounds.width(), bounds.height());
167 m_picture->playback(&canvas); 168 m_picture->playback(&canvas);
168 return canvas.log(); 169 return canvas.log();
169 } 170 }
170 171
171 } // namespace blink 172 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/TimerTest.cpp ('k') | third_party/WebKit/Source/platform/heap/Heap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698