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

Side by Side Diff: third_party/WebKit/Source/modules/shapedetection/ShapeDetector.cpp

Issue 2801083003: Rewrite references to "wtf/" to "platform/wtf/" in modules. (Closed)
Patch Set: Rebase again^3. Will try landing directly. Created 3 years, 8 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "modules/shapedetection/ShapeDetector.h" 5 #include "modules/shapedetection/ShapeDetector.h"
6 6
7 #include "core/dom/DOMException.h" 7 #include "core/dom/DOMException.h"
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/frame/ImageBitmap.h" 9 #include "core/frame/ImageBitmap.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
11 #include "core/geometry/DOMRect.h" 11 #include "core/geometry/DOMRect.h"
12 #include "core/html/HTMLImageElement.h" 12 #include "core/html/HTMLImageElement.h"
13 #include "core/html/HTMLVideoElement.h" 13 #include "core/html/HTMLVideoElement.h"
14 #include "core/html/ImageData.h" 14 #include "core/html/ImageData.h"
15 #include "core/loader/resource/ImageResourceContent.h" 15 #include "core/loader/resource/ImageResourceContent.h"
16 #include "platform/graphics/Image.h" 16 #include "platform/graphics/Image.h"
17 #include "platform/wtf/CheckedNumeric.h"
17 #include "third_party/skia/include/core/SkImage.h" 18 #include "third_party/skia/include/core/SkImage.h"
18 #include "third_party/skia/include/core/SkImageInfo.h" 19 #include "third_party/skia/include/core/SkImageInfo.h"
19 #include "wtf/CheckedNumeric.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 namespace { 23 namespace {
24 24
25 mojo::ScopedSharedBufferHandle GetSharedBufferOnData( 25 mojo::ScopedSharedBufferHandle GetSharedBufferOnData(
26 ScriptPromiseResolver* resolver, 26 ScriptPromiseResolver* resolver,
27 uint8_t* data, 27 uint8_t* data,
28 int size) { 28 int size) {
29 DCHECK(data); 29 DCHECK(data);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 kInvalidStateError, 230 kInvalidStateError,
231 "Failed to read pixels: Unable to decompress or unsupported format.")); 231 "Failed to read pixels: Unable to decompress or unsupported format."));
232 return promise; 232 return promise;
233 } 233 }
234 234
235 return DoDetect(resolver, std::move(shared_buffer_handle), 235 return DoDetect(resolver, std::move(shared_buffer_handle),
236 img->naturalWidth(), img->naturalHeight()); 236 img->naturalWidth(), img->naturalHeight());
237 } 237 }
238 238
239 } // namespace blink 239 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698