| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 virtual ~CanvasRenderingContext() { } | 45 virtual ~CanvasRenderingContext() { } |
| 46 | 46 |
| 47 void ref() { m_canvas->ref(); } | 47 void ref() { m_canvas->ref(); } |
| 48 void deref() { m_canvas->deref(); } | 48 void deref() { m_canvas->deref(); } |
| 49 HTMLCanvasElement* canvas() const { return m_canvas; } | 49 HTMLCanvasElement* canvas() const { return m_canvas; } |
| 50 | 50 |
| 51 virtual bool is2d() const { return false; } | 51 virtual bool is2d() const { return false; } |
| 52 virtual bool is3d() const { return false; } | 52 virtual bool is3d() const { return false; } |
| 53 virtual bool isAccelerated() const { return false; } | 53 virtual bool isAccelerated() const { return false; } |
| 54 virtual bool hasAlpha() const { return true; } | 54 virtual bool hasAlpha() const { return true; } |
| 55 virtual void setIsHidden(bool) = 0; |
| 55 | 56 |
| 56 virtual void paintRenderingResultsToCanvas() {} | 57 virtual void paintRenderingResultsToCanvas() {} |
| 57 | 58 |
| 58 virtual blink::WebLayer* platformLayer() const { return 0; } | 59 virtual blink::WebLayer* platformLayer() const { return 0; } |
| 59 protected: | 60 protected: |
| 60 CanvasRenderingContext(HTMLCanvasElement*); | 61 CanvasRenderingContext(HTMLCanvasElement*); |
| 61 | 62 |
| 62 private: | 63 private: |
| 63 HTMLCanvasElement* m_canvas; | 64 HTMLCanvasElement* m_canvas; |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 } // namespace WebCore | 67 } // namespace WebCore |
| 67 | 68 |
| 68 #endif | 69 #endif |
| OLD | NEW |