| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 void SnapshotStateForFilter() final; | 191 void SnapshotStateForFilter() final; |
| 192 | 192 |
| 193 void ValidateStateStack() const final; | 193 void ValidateStateStack() const final; |
| 194 | 194 |
| 195 PassRefPtr<Image> GetImage(AccelerationHint, SnapshotReason) const final; | 195 PassRefPtr<Image> GetImage(AccelerationHint, SnapshotReason) const final; |
| 196 | 196 |
| 197 void FinalizeFrame() override { usage_counters_.num_frames_since_reset++; } | 197 void FinalizeFrame() override { usage_counters_.num_frames_since_reset++; } |
| 198 | 198 |
| 199 bool IsPaintable() const final { return HasImageBuffer(); } | 199 bool IsPaintable() const final { return HasImageBuffer(); } |
| 200 | 200 |
| 201 ColorBehavior DrawImageColorBehavior() const final; | |
| 202 | |
| 203 void WillDrawImage(CanvasImageSource*) const final; | 201 void WillDrawImage(CanvasImageSource*) const final; |
| 204 | 202 |
| 205 protected: | 203 protected: |
| 206 virtual void NeedsFinalizeFrame() { | 204 virtual void NeedsFinalizeFrame() { |
| 207 CanvasRenderingContext::NeedsFinalizeFrame(); | 205 CanvasRenderingContext::NeedsFinalizeFrame(); |
| 208 } | 206 } |
| 209 | 207 |
| 210 private: | 208 private: |
| 211 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; | 209 friend class CanvasRenderingContext2DAutoRestoreSkCanvas; |
| 212 | 210 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 | 271 |
| 274 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, | 272 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, |
| 275 CanvasRenderingContext, | 273 CanvasRenderingContext, |
| 276 context, | 274 context, |
| 277 context->Is2d() && context->host(), | 275 context->Is2d() && context->host(), |
| 278 context.Is2d() && context.host()); | 276 context.Is2d() && context.host()); |
| 279 | 277 |
| 280 } // namespace blink | 278 } // namespace blink |
| 281 | 279 |
| 282 #endif // CanvasRenderingContext2D_h | 280 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |