| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 CompositePlusLighter | 72 CompositePlusLighter |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 enum OpacityMode { | 75 enum OpacityMode { |
| 76 NonOpaque, | 76 NonOpaque, |
| 77 Opaque, | 77 Opaque, |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 enum AccelerationHint { | 80 enum AccelerationHint { |
| 81 PreferAcceleration, | 81 PreferAcceleration, |
| 82 // The PreferAccelerationAfterVisibilityChange hint suggests we should switch
back to acceleration | 82 // The PreferAccelerationAfterVisibilityChange hint suggests we should switch |
| 83 // 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 SnapshotReasonCopyToWebGLTexture, |
| 92 SnapshotReasonPaint, | 92 SnapshotReasonPaint, |
| 93 SnapshotReasonToDataURL, | 93 SnapshotReasonToDataURL, |
| (...skipping 24 matching lines...) Expand all Loading... |
| 118 FlushReasonUnknown, | 118 FlushReasonUnknown, |
| 119 FlushReasonInitialClear, | 119 FlushReasonInitialClear, |
| 120 FlushReasonDrawImageOfWebGL, | 120 FlushReasonDrawImageOfWebGL, |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 enum ImageInitializationMode { | 123 enum ImageInitializationMode { |
| 124 InitializeImagePixels, | 124 InitializeImagePixels, |
| 125 DoNotInitializeImagePixels, | 125 DoNotInitializeImagePixels, |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 // TODO(junov): crbug.com/453113 relocate ShadowMode to CanvasRenderingContext2D
State.h once | 128 // TODO(junov): crbug.com/453113 Relocate ShadowMode to |
| 129 // GraphicsContext no longer uses it. | 129 // CanvasRenderingContext2DState.h once GraphicsContext no longer uses it. |
| 130 enum ShadowMode { DrawShadowAndForeground, DrawShadowOnly, DrawForegroundOnly }; | 130 enum ShadowMode { DrawShadowAndForeground, DrawShadowOnly, DrawForegroundOnly }; |
| 131 | 131 |
| 132 enum AntiAliasingMode { NotAntiAliased, AntiAliased }; | 132 enum AntiAliasingMode { NotAntiAliased, AntiAliased }; |
| 133 | 133 |
| 134 enum GradientSpreadMethod { | 134 enum GradientSpreadMethod { |
| 135 SpreadMethodPad, | 135 SpreadMethodPad, |
| 136 SpreadMethodReflect, | 136 SpreadMethodReflect, |
| 137 SpreadMethodRepeat | 137 SpreadMethodRepeat |
| 138 }; | 138 }; |
| 139 | 139 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 199 |
| 200 PLATFORM_EXPORT String textAlignName(TextAlign); | 200 PLATFORM_EXPORT String textAlignName(TextAlign); |
| 201 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&); | 201 PLATFORM_EXPORT bool parseTextAlign(const String&, TextAlign&); |
| 202 | 202 |
| 203 PLATFORM_EXPORT String textBaselineName(TextBaseline); | 203 PLATFORM_EXPORT String textBaselineName(TextBaseline); |
| 204 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&); | 204 PLATFORM_EXPORT bool parseTextBaseline(const String&, TextBaseline&); |
| 205 | 205 |
| 206 } // namespace blink | 206 } // namespace blink |
| 207 | 207 |
| 208 #endif | 208 #endif |
| OLD | NEW |