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

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

Issue 2746113002: platform/loader: move network/Resource* to loader/fetch (Closed)
Patch Set: git rebase master Created 3 years, 9 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 25 matching lines...) Expand all
36 #include "core/html/HTMLCanvasElement.h" 36 #include "core/html/HTMLCanvasElement.h"
37 #include "core/html/HTMLImageElement.h" 37 #include "core/html/HTMLImageElement.h"
38 #include "core/html/HTMLVideoElement.h" 38 #include "core/html/HTMLVideoElement.h"
39 #include "core/html/ImageData.h" 39 #include "core/html/ImageData.h"
40 #include "core/loader/resource/ImageResourceContent.h" 40 #include "core/loader/resource/ImageResourceContent.h"
41 #include "platform/graphics/StaticBitmapImage.h" 41 #include "platform/graphics/StaticBitmapImage.h"
42 #include "platform/graphics/skia/SkiaUtils.h" 42 #include "platform/graphics/skia/SkiaUtils.h"
43 #include "platform/heap/Handle.h" 43 #include "platform/heap/Handle.h"
44 #include "platform/image-decoders/ImageDecoder.h" 44 #include "platform/image-decoders/ImageDecoder.h"
45 #include "platform/loader/fetch/MemoryCache.h" 45 #include "platform/loader/fetch/MemoryCache.h"
46 #include "platform/network/ResourceRequest.h" 46 #include "platform/loader/fetch/ResourceRequest.h"
47 #include "testing/gtest/include/gtest/gtest.h" 47 #include "testing/gtest/include/gtest/gtest.h"
48 #include "third_party/skia/include/core/SkCanvas.h" 48 #include "third_party/skia/include/core/SkCanvas.h"
49 #include "third_party/skia/include/core/SkColorSpaceXform.h" 49 #include "third_party/skia/include/core/SkColorSpaceXform.h"
50 #include "third_party/skia/include/core/SkImage.h" 50 #include "third_party/skia/include/core/SkImage.h"
51 #include "third_party/skia/include/core/SkSurface.h" 51 #include "third_party/skia/include/core/SkSurface.h"
52 #include "third_party/skia/include/core/SkSwizzle.h" 52 #include "third_party/skia/include/core/SkSwizzle.h"
53 53
54 namespace blink { 54 namespace blink {
55 55
56 class ExceptionState; 56 class ExceptionState;
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 colorSpaceXform->apply(colorFormat, transformedPixel.get(), colorFormat32, 551 colorSpaceXform->apply(colorFormat, transformedPixel.get(), colorFormat32,
552 srcPixel.get(), 1, 552 srcPixel.get(), 1,
553 SkAlphaType::kUnpremul_SkAlphaType); 553 SkAlphaType::kUnpremul_SkAlphaType);
554 int compare = std::memcmp(convertedPixel.get(), transformedPixel.get(), 554 int compare = std::memcmp(convertedPixel.get(), transformedPixel.get(),
555 imageInfo.bytesPerPixel()); 555 imageInfo.bytesPerPixel());
556 ASSERT_EQ(compare, 0); 556 ASSERT_EQ(compare, 0);
557 } 557 }
558 } 558 }
559 559
560 } // namespace blink 560 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameConsole.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698