| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006 Apple Computer, 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 PreferAcceleration, | 81 PreferAcceleration, |
| 82 // The PreferAccelerationAfterVisibilityChange hint suggests we should switch | 82 // The PreferAccelerationAfterVisibilityChange hint suggests we should switch |
| 83 // back to acceleration in the context of the canvas becoming visible again. | 83 // back to acceleration in the context of the canvas becoming visible again. |
| 84 PreferAccelerationAfterVisibilityChange, | 84 PreferAccelerationAfterVisibilityChange, |
| 85 PreferNoAcceleration, | 85 PreferNoAcceleration, |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 enum SnapshotReason { | 88 enum SnapshotReason { |
| 89 SnapshotReasonUnknown, | 89 SnapshotReasonUnknown, |
| 90 SnapshotReasonGetImageData, | 90 SnapshotReasonGetImageData, |
| 91 SnapshotReasonCopyToWebGLTexture, | 91 SnapshotReasonWebGLTexImage2D, |
| 92 SnapshotReasonWebGLTexSubImage2D, |
| 93 SnapshotReasonWebGLTexImage3D, |
| 94 SnapshotReasonWebGLTexSubImage3D, |
| 92 SnapshotReasonPaint, | 95 SnapshotReasonPaint, |
| 93 SnapshotReasonToDataURL, | 96 SnapshotReasonToDataURL, |
| 94 SnapshotReasonToBlob, | 97 SnapshotReasonToBlob, |
| 95 SnapshotReasonCanvasListenerCapture, | 98 SnapshotReasonCanvasListenerCapture, |
| 96 SnapshotReasonDrawImage, | 99 SnapshotReasonDrawImage, |
| 97 SnapshotReasonCreatePattern, | 100 SnapshotReasonCreatePattern, |
| 98 SnapshotReasonTransferToImageBitmap, | 101 SnapshotReasonTransferToImageBitmap, |
| 99 SnapshotReasonUnitTests, | 102 SnapshotReasonUnitTests, |
| 100 SnapshotReasonGetCopiedImage, | 103 SnapshotReasonGetCopiedImage, |
| 101 SnapshotReasonWebGLDrawImageIntoBuffer, | 104 SnapshotReasonWebGLDrawImageIntoBuffer, |
| 105 SnapshotReasonCopyToClipboard, |
| 106 SnapshotReasonCreateImageBitmap, |
| 102 }; | 107 }; |
| 103 | 108 |
| 104 // Note: enum used directly for histogram, values must not change | 109 // Note: enum used directly for histogram, values must not change |
| 105 enum DisableDeferralReason { | 110 enum DisableDeferralReason { |
| 106 DisableDeferralReasonUnknown = | 111 DisableDeferralReasonUnknown = |
| 107 0, // Should not appear in production histograms | 112 0, // Should not appear in production histograms |
| 108 DisableDeferralReasonExpensiveOverdrawHeuristic = 1, | 113 DisableDeferralReasonExpensiveOverdrawHeuristic = 1, |
| 109 DisableDeferralReasonUsingTextureBackedPattern = 2, | 114 DisableDeferralReasonUsingTextureBackedPattern = 2, |
| 110 DisableDeferralReasonDrawImageOfVideo = 3, | 115 DisableDeferralReasonDrawImageOfVideo = 3, |
| 111 DisableDeferralReasonDrawImageOfAnimated2dCanvas = 4, | 116 DisableDeferralReasonDrawImageOfAnimated2dCanvas = 4, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 204 |
| 200 PLATFORM_EXPORT String textAlignName(TextAlign); | 205 PLATFORM_EXPORT String textAlignName(TextAlign); |
| 201 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&); | 206 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&); |
| 202 | 207 |
| 203 PLATFORM_EXPORT String textBaselineName(TextBaseline); | 208 PLATFORM_EXPORT String textBaselineName(TextBaseline); |
| 204 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&); | 209 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&); |
| 205 | 210 |
| 206 } // namespace blink | 211 } // namespace blink |
| 207 | 212 |
| 208 #endif | 213 #endif |
| OLD | NEW |