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

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: Addressing comments 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 const CanvasRenderingContext* renderingContext() const final;
237
235 bool is2d() const override { return true; } 238 bool is2d() const override { return true; }
236 bool isComposited() const override; 239 bool isComposited() const override;
237 bool isAccelerated() const override; 240 bool isAccelerated() const override;
238 bool hasAlpha() const override { return creationAttributes().alpha(); } 241 bool hasAlpha() const override { return creationAttributes().alpha(); }
239 void setIsHidden(bool) override; 242 void setIsHidden(bool) override;
240 void stop() final; 243 void stop() final;
241 DECLARE_VIRTUAL_TRACE(); 244 DECLARE_VIRTUAL_TRACE();
242 245
243 virtual bool isTransformInvertible() const; 246 virtual bool isTransformInvertible() const;
244 247
(...skipping 15 matching lines...) Expand all
260 263
261 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, 264 DEFINE_TYPE_CASTS(CanvasRenderingContext2D,
262 CanvasRenderingContext, 265 CanvasRenderingContext,
263 context, 266 context,
264 context->is2d() && context->canvas(), 267 context->is2d() && context->canvas(),
265 context.is2d() && context.canvas()); 268 context.is2d() && context.canvas());
266 269
267 } // namespace blink 270 } // namespace blink
268 271
269 #endif // CanvasRenderingContext2D_h 272 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698