| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |