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

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

Issue 2797213002: Fix BaseRenderingContext2D create/put/get-ImageData() for color managed canvas (Closed)
Patch Set: Layout test added Created 3 years, 8 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 float getFontBaseline(const FontMetrics&) const; 225 float getFontBaseline(const FontMetrics&) const;
226 226
227 void drawFocusIfNeededInternal(const Path&, Element*); 227 void drawFocusIfNeededInternal(const Path&, Element*);
228 bool focusRingCallIsValid(const Path&, Element*); 228 bool focusRingCallIsValid(const Path&, Element*);
229 void drawFocusRing(const Path&); 229 void drawFocusRing(const Path&);
230 void updateElementAccessibility(const Path&, Element*); 230 void updateElementAccessibility(const Path&, Element*);
231 231
232 CanvasRenderingContext::ContextType getContextType() const override { 232 CanvasRenderingContext::ContextType getContextType() const override {
233 return CanvasRenderingContext::Context2d; 233 return CanvasRenderingContext::Context2d;
234 } 234 }
235
236 CanvasRenderingContext* renderingContext() const final;
237
235 bool is2d() const override { return true; } 238 bool is2d() const override { return true; }
236 bool isAccelerated() const override; 239 bool isAccelerated() const override;
237 bool hasAlpha() const override { return creationAttributes().alpha(); } 240 bool hasAlpha() const override { return creationAttributes().alpha(); }
238 void setIsHidden(bool) override; 241 void setIsHidden(bool) override;
239 void stop() final; 242 void stop() final;
240 DECLARE_VIRTUAL_TRACE(); 243 DECLARE_VIRTUAL_TRACE();
241 244
242 virtual bool isTransformInvertible() const; 245 virtual bool isTransformInvertible() const;
243 246
244 WebLayer* platformLayer() const override; 247 WebLayer* platformLayer() const override;
(...skipping 14 matching lines...) Expand all
259 262
260 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, 263 DEFINE_TYPE_CASTS(CanvasRenderingContext2D,
261 CanvasRenderingContext, 264 CanvasRenderingContext,
262 context, 265 context,
263 context->is2d() && context->canvas(), 266 context->is2d() && context->canvas(),
264 context.is2d() && context.canvas()); 267 context.is2d() && context.canvas());
265 268
266 } // namespace blink 269 } // namespace blink
267 270
268 #endif // CanvasRenderingContext2D_h 271 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698