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

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

Issue 2708403003: Implement canvas color space IDL format for 2D canvas (Closed)
Patch Set: Addressing GPU pixel test failures Created 3 years, 9 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 17 matching lines...) Expand all
28 #define CanvasRenderingContext2D_h 28 #define CanvasRenderingContext2D_h
29 29
30 #include "bindings/core/v8/ScriptWrappable.h" 30 #include "bindings/core/v8/ScriptWrappable.h"
31 #include "core/html/canvas/CanvasContextCreationAttributes.h" 31 #include "core/html/canvas/CanvasContextCreationAttributes.h"
32 #include "core/html/canvas/CanvasRenderingContext.h" 32 #include "core/html/canvas/CanvasRenderingContext.h"
33 #include "core/html/canvas/CanvasRenderingContextFactory.h" 33 #include "core/html/canvas/CanvasRenderingContextFactory.h"
34 #include "core/style/FilterOperations.h" 34 #include "core/style/FilterOperations.h"
35 #include "core/svg/SVGResourceClient.h" 35 #include "core/svg/SVGResourceClient.h"
36 #include "modules/ModulesExport.h" 36 #include "modules/ModulesExport.h"
37 #include "modules/canvas2d/BaseRenderingContext2D.h" 37 #include "modules/canvas2d/BaseRenderingContext2D.h"
38 #include "modules/canvas2d/Canvas2DContextAttributes.h" 38 #include "modules/canvas2d/CanvasRenderingContext2DSettings.h"
39 #include "modules/canvas2d/CanvasRenderingContext2DState.h" 39 #include "modules/canvas2d/CanvasRenderingContext2DState.h"
40 #include "platform/graphics/GraphicsTypes.h" 40 #include "platform/graphics/GraphicsTypes.h"
41 #include "platform/heap/GarbageCollected.h" 41 #include "platform/heap/GarbageCollected.h"
42 #include "public/platform/WebThread.h" 42 #include "public/platform/WebThread.h"
43 #include "wtf/Vector.h" 43 #include "wtf/Vector.h"
44 #include "wtf/text/WTFString.h" 44 #include "wtf/text/WTFString.h"
45 45
46 namespace blink { 46 namespace blink {
47 class WebLayer; 47 class WebLayer;
48 } 48 }
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 116
117 String direction() const; 117 String direction() const;
118 void setDirection(const String&); 118 void setDirection(const String&);
119 119
120 void fillText(const String& text, double x, double y); 120 void fillText(const String& text, double x, double y);
121 void fillText(const String& text, double x, double y, double maxWidth); 121 void fillText(const String& text, double x, double y, double maxWidth);
122 void strokeText(const String& text, double x, double y); 122 void strokeText(const String& text, double x, double y);
123 void strokeText(const String& text, double x, double y, double maxWidth); 123 void strokeText(const String& text, double x, double y, double maxWidth);
124 TextMetrics* measureText(const String& text); 124 TextMetrics* measureText(const String& text);
125 125
126 void getContextAttributes(Canvas2DContextAttributes&) const; 126 void getContextAttributes(CanvasRenderingContext2DSettings&) const;
127 127
128 void drawFocusIfNeeded(Element*); 128 void drawFocusIfNeeded(Element*);
129 void drawFocusIfNeeded(Path2D*, Element*); 129 void drawFocusIfNeeded(Path2D*, Element*);
130 130
131 void addHitRegion(const HitRegionOptions&, ExceptionState&); 131 void addHitRegion(const HitRegionOptions&, ExceptionState&);
132 void removeHitRegion(const String& id); 132 void removeHitRegion(const String& id);
133 void clearHitRegions(); 133 void clearHitRegions();
134 HitRegion* hitRegionAtPoint(const FloatPoint&); 134 HitRegion* hitRegionAtPoint(const FloatPoint&);
135 unsigned hitRegionsCount() const override; 135 unsigned hitRegionsCount() const override;
136 136
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 259
260 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, 260 DEFINE_TYPE_CASTS(CanvasRenderingContext2D,
261 CanvasRenderingContext, 261 CanvasRenderingContext,
262 context, 262 context,
263 context->is2d() && context->canvas(), 263 context->is2d() && context->canvas(),
264 context.is2d() && context.canvas()); 264 context.is2d() && context.canvas());
265 265
266 } // namespace blink 266 } // namespace blink
267 267
268 #endif // CanvasRenderingContext2D_h 268 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698