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

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: Rebaseline Created 3 years, 7 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 float GetFontBaseline(const FontMetrics&) const; 236 float GetFontBaseline(const FontMetrics&) const;
237 237
238 void DrawFocusIfNeededInternal(const Path&, Element*); 238 void DrawFocusIfNeededInternal(const Path&, Element*);
239 bool FocusRingCallIsValid(const Path&, Element*); 239 bool FocusRingCallIsValid(const Path&, Element*);
240 void DrawFocusRing(const Path&); 240 void DrawFocusRing(const Path&);
241 void UpdateElementAccessibility(const Path&, Element*); 241 void UpdateElementAccessibility(const Path&, Element*);
242 242
243 CanvasRenderingContext::ContextType GetContextType() const override { 243 CanvasRenderingContext::ContextType GetContextType() const override {
244 return CanvasRenderingContext::kContext2d; 244 return CanvasRenderingContext::kContext2d;
245 } 245 }
246
247 CanvasColorSpace ColorSpace() const override;
248 String ColorSpaceAsString() const override;
249 CanvasPixelFormat PixelFormat() const override;
250
246 bool Is2d() const override { return true; } 251 bool Is2d() const override { return true; }
247 bool IsComposited() const override; 252 bool IsComposited() const override;
248 bool IsAccelerated() const override; 253 bool IsAccelerated() const override;
249 bool HasAlpha() const override { return CreationAttributes().alpha(); } 254 bool HasAlpha() const override { return CreationAttributes().alpha(); }
250 void SetIsHidden(bool) override; 255 void SetIsHidden(bool) override;
251 void Stop() final; 256 void Stop() final;
252 DECLARE_VIRTUAL_TRACE(); 257 DECLARE_VIRTUAL_TRACE();
253 258
254 virtual bool IsTransformInvertible() const; 259 virtual bool IsTransformInvertible() const;
255 260
(...skipping 17 matching lines...) Expand all
273 // TODO(fserb): remove this? 278 // TODO(fserb): remove this?
274 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, 279 DEFINE_TYPE_CASTS(CanvasRenderingContext2D,
275 CanvasRenderingContext, 280 CanvasRenderingContext,
276 context, 281 context,
277 context->Is2d() && context->host(), 282 context->Is2d() && context->host(),
278 context.Is2d() && context.host()); 283 context.Is2d() && context.host());
279 284
280 } // namespace blink 285 } // namespace blink
281 286
282 #endif // CanvasRenderingContext2D_h 287 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698