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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h

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 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 PassRefPtr<SkImage> createImage(size_t index, bool knownToBeOpaque) const; 84 PassRefPtr<SkImage> createImage(size_t index, bool knownToBeOpaque) const;
85 void activateLazyDecoding(); 85 void activateLazyDecoding();
86 86
87 RefPtr<SharedBuffer> m_data; 87 RefPtr<SharedBuffer> m_data;
88 bool m_allDataReceived; 88 bool m_allDataReceived;
89 unsigned m_lastDataSize; 89 unsigned m_lastDataSize;
90 OwnPtr<ImageDecoder> m_actualDecoder; 90 OwnPtr<ImageDecoder> m_actualDecoder;
91 91
92 String m_filenameExtension; 92 String m_filenameExtension;
93 IntSize m_size; 93 IntSize m_size;
94 ImageOrientation m_orientation;
95 int m_repetitionCount; 94 int m_repetitionCount;
96 bool m_hasColorProfile; 95 bool m_hasColorProfile;
97 96
98 // Carries only frame state and other information. Does not carry bitmap. 97 // Carries only frame state and other information. Does not carry bitmap.
99 Vector<FrameData> m_frameData; 98 Vector<FrameData> m_frameData;
100 RefPtr<ImageFrameGenerator> m_frameGenerator; 99 RefPtr<ImageFrameGenerator> m_frameGenerator;
101 100
102 static bool s_enabled; 101 static bool s_enabled;
103 }; 102 };
104 103
105 } // namespace blink 104 } // namespace blink
106 105
107 #endif 106 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698