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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/ImageOrientation.cpp

Issue 1413593012: Record UMA stats for Blink decoded image orientation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix histograms.xml Created 5 years, 1 month 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 /* 2 /*
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 case OriginBottomLeft: 46 case OriginBottomLeft:
47 return AffineTransform( 1, 0, 0, -1, 0, h); 47 return AffineTransform( 1, 0, 0, -1, 0, h);
48 case OriginLeftTop: 48 case OriginLeftTop:
49 return AffineTransform( 0, 1, 1, 0, 0, 0); 49 return AffineTransform( 0, 1, 1, 0, 0, 0);
50 case OriginRightTop: 50 case OriginRightTop:
51 return AffineTransform( 0, 1, -1, 0, w, 0); 51 return AffineTransform( 0, 1, -1, 0, w, 0);
52 case OriginRightBottom: 52 case OriginRightBottom:
53 return AffineTransform( 0, -1, -1, 0, w, h); 53 return AffineTransform( 0, -1, -1, 0, w, h);
54 case OriginLeftBottom: 54 case OriginLeftBottom:
55 return AffineTransform( 0, -1, 1, 0, 0, h); 55 return AffineTransform( 0, -1, 1, 0, 0, h);
56 default:
57 ASSERT_NOT_REACHED();
56 } 58 }
57 59
58 ASSERT_NOT_REACHED(); 60 ASSERT_NOT_REACHED();
59 return AffineTransform(); 61 return AffineTransform();
60 } 62 }
61 63
62 } // namespace blink 64 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageOrientation.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698