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

Side by Side Diff: third_party/WebKit/Source/core/frame/ImageBitmap.cpp

Issue 1913283002: Trim Skia dependencies in Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "core/frame/ImageBitmap.h" 5 #include "core/frame/ImageBitmap.h"
6 6
7 #include "core/html/HTMLCanvasElement.h" 7 #include "core/html/HTMLCanvasElement.h"
8 #include "core/html/HTMLVideoElement.h" 8 #include "core/html/HTMLVideoElement.h"
9 #include "core/html/ImageData.h" 9 #include "core/html/ImageData.h"
10 #include "platform/image-decoders/ImageDecoder.h" 10 #include "platform/image-decoders/ImageDecoder.h"
11 #include "third_party/skia/include/core/SkCanvas.h"
11 #include "third_party/skia/include/core/SkSurface.h" 12 #include "third_party/skia/include/core/SkSurface.h"
12 #include "wtf/RefPtr.h" 13 #include "wtf/RefPtr.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 static const char* imageOrientationFlipY = "flipY"; 17 static const char* imageOrientationFlipY = "flipY";
17 static const char* imageBitmapOptionNone = "none"; 18 static const char* imageBitmapOptionNone = "none";
18 19
19 // The following two functions are helpers used in cropImage 20 // The following two functions are helpers used in cropImage
20 static inline IntRect normalizeRect(const IntRect& rect) 21 static inline IntRect normalizeRect(const IntRect& rect)
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 FloatSize ImageBitmap::elementSize(const FloatSize&) const 472 FloatSize ImageBitmap::elementSize(const FloatSize&) const
472 { 473 {
473 return FloatSize(width(), height()); 474 return FloatSize(width(), height());
474 } 475 }
475 476
476 DEFINE_TRACE(ImageBitmap) 477 DEFINE_TRACE(ImageBitmap)
477 { 478 {
478 } 479 }
479 480
480 } // namespace blink 481 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698