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

Side by Side Diff: ui/gfx/image/image_unittest_util.h

Issue 10946031: Modifies GetPlatformImageColor() to check the color of a given point. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix compile. Created 8 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Because the unit tests for gfx::Image are spread across multiple 5 // Because the unit tests for gfx::Image are spread across multiple
6 // implementation files, this header contains the reusable components. 6 // implementation files, this header contains the reusable components.
7 7
8 #ifndef UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_ 8 #ifndef UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_
9 #define UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_ 9 #define UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_
10 10
(...skipping 25 matching lines...) Expand all
36 36
37 bool IsEmpty(const gfx::Image& image); 37 bool IsEmpty(const gfx::Image& image);
38 38
39 PlatformImage CreatePlatformImage(); 39 PlatformImage CreatePlatformImage();
40 40
41 gfx::Image::RepresentationType GetPlatformRepresentationType(); 41 gfx::Image::RepresentationType GetPlatformRepresentationType();
42 42
43 PlatformImage ToPlatformType(const gfx::Image& image); 43 PlatformImage ToPlatformType(const gfx::Image& image);
44 PlatformImage CopyPlatformType(const gfx::Image& image); 44 PlatformImage CopyPlatformType(const gfx::Image& image);
45 45
46 SkColor GetPlatformImageColor(PlatformImage image); 46 SkColor GetPlatformImageColor(PlatformImage image, int x, int y);
47 void CheckColor(SkColor color, bool is_red); 47 void CheckColor(SkColor color, bool is_red);
48 48
49 bool IsPlatformImageValid(PlatformImage image); 49 bool IsPlatformImageValid(PlatformImage image);
50 50
51 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2); 51 bool PlatformImagesEqual(PlatformImage image1, PlatformImage image2);
52 52
53 } // namespace test 53 } // namespace test
54 } // namespace gfx 54 } // namespace gfx
55 55
56 #endif // UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_ 56 #endif // UI_GFX_IMAGE_IMAGE_UNITTEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698