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

Side by Side Diff: third_party/WebKit/Source/platform/DragImageTest.cpp

Issue 2712083002: color: Remove blink pre-conversion code (Closed)
Patch Set: Rebase 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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 void destroyDecodedData() override { 76 void destroyDecodedData() override {
77 // Image pure virtual stub. 77 // Image pure virtual stub.
78 } 78 }
79 79
80 void draw(PaintCanvas*, 80 void draw(PaintCanvas*,
81 const PaintFlags&, 81 const PaintFlags&,
82 const FloatRect&, 82 const FloatRect&,
83 const FloatRect&, 83 const FloatRect&,
84 RespectImageOrientationEnum, 84 RespectImageOrientationEnum,
85 ImageClampingMode, 85 ImageClampingMode) override {
86 const ColorBehavior&) override {
87 // Image pure virtual stub. 86 // Image pure virtual stub.
88 } 87 }
89 88
90 private: 89 private:
91 explicit TestImage(sk_sp<SkImage> image) : m_image(image) {} 90 explicit TestImage(sk_sp<SkImage> image) : m_image(image) {}
92 91
93 explicit TestImage(IntSize size) : m_image(nullptr) { 92 explicit TestImage(IntSize size) : m_image(nullptr) {
94 sk_sp<SkSurface> surface = createSkSurface(size); 93 sk_sp<SkSurface> surface = createSkSurface(size);
95 if (!surface) 94 if (!surface)
96 return; 95 return;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 { 221 {
223 SkAutoLockPixels lock1(dragBitmap); 222 SkAutoLockPixels lock1(dragBitmap);
224 SkAutoLockPixels lock2(expectedBitmap); 223 SkAutoLockPixels lock2(expectedBitmap);
225 for (int x = 0; x < dragBitmap.width(); ++x) 224 for (int x = 0; x < dragBitmap.width(); ++x)
226 for (int y = 0; y < dragBitmap.height(); ++y) 225 for (int y = 0; y < dragBitmap.height(); ++y)
227 EXPECT_EQ(expectedBitmap.getColor(x, y), dragBitmap.getColor(x, y)); 226 EXPECT_EQ(expectedBitmap.getColor(x, y), dragBitmap.getColor(x, y));
228 } 227 }
229 } 228 }
230 229
231 } // namespace blink 230 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698