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

Side by Side Diff: Source/core/html/canvas/CanvasContextAttributes.h

Issue 14298018: This CL implements the first draft of Canvas 2D Context Attributes, aka getContext('2d', { alpha: f… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to ToT; test cleanup Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010, Google Inc. All rights reserved. 2 * Copyright (c) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * * Redistributions of source code must retain the above copyright 7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above 9 * * Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following disclaimer 10 * copyright notice, this list of conditions and the following disclaimer
(...skipping 14 matching lines...) Expand all
25 */ 25 */
26 26
27 #ifndef CanvasContextAttributes_h 27 #ifndef CanvasContextAttributes_h
28 #define CanvasContextAttributes_h 28 #define CanvasContextAttributes_h
29 29
30 #include <wtf/RefCounted.h> 30 #include <wtf/RefCounted.h>
31 31
32 namespace WebCore { 32 namespace WebCore {
33 33
34 // A base class for any attributes that are needed which would affect 34 // A base class for any attributes that are needed which would affect
35 // the creation of the Canvas's rendering context. Currently only the 35 // the creation of the Canvas's rendering context.
36 // WebGLRenderingContext uses this mechanism.
37 36
38 class CanvasContextAttributes : public RefCounted<CanvasContextAttributes> { 37 class CanvasContextAttributes : public RefCounted<CanvasContextAttributes> {
39 public: 38 public:
40 virtual ~CanvasContextAttributes(); 39 virtual ~CanvasContextAttributes();
41 40
42 protected: 41 protected:
43 CanvasContextAttributes(); 42 CanvasContextAttributes();
44 }; 43 };
45 44
46 } // namespace WebCore 45 } // namespace WebCore
47 46
48 #endif // CanvasContextAttributes_h 47 #endif // CanvasContextAttributes_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/Canvas2DContextAttributes.idl ('k') | Source/core/html/canvas/CanvasRenderingContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698