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

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 2893243003: color: Add ColorCanvasExtensions runtime flag (Closed)
Patch Set: Update webkit_unit_tests to use new flags Created 3 years, 6 months 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) 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698