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

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

Issue 2738573002: Streamline the presentation of ImageBitmapRenderingContext (Closed)
Patch Set: Fixed expectations 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 bool is2d() const override { return true; } 235 bool is2d() const override { return true; }
236 bool isComposited() const override;
236 bool isAccelerated() const override; 237 bool isAccelerated() const override;
237 bool hasAlpha() const override { return creationAttributes().alpha(); } 238 bool hasAlpha() const override { return creationAttributes().alpha(); }
238 void setIsHidden(bool) override; 239 void setIsHidden(bool) override;
239 void stop() final; 240 void stop() final;
240 DECLARE_VIRTUAL_TRACE(); 241 DECLARE_VIRTUAL_TRACE();
241 242
242 virtual bool isTransformInvertible() const; 243 virtual bool isTransformInvertible() const;
243 244
244 WebLayer* platformLayer() const override; 245 WebLayer* platformLayer() const override;
245 246
(...skipping 13 matching lines...) Expand all
259 260
260 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, 261 DEFINE_TYPE_CASTS(CanvasRenderingContext2D,
261 CanvasRenderingContext, 262 CanvasRenderingContext,
262 context, 263 context,
263 context->is2d() && context->canvas(), 264 context->is2d() && context->canvas(),
264 context.is2d() && context.canvas()); 265 context.is2d() && context.canvas());
265 266
266 } // namespace blink 267 } // namespace blink
267 268
268 #endif // CanvasRenderingContext2D_h 269 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698