| 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 | 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 void setSurfaceSize(const IntSize&); | 86 void setSurfaceSize(const IntSize&); |
| 87 bool hasCreatedImageBuffer() const { return m_hasCreatedImageBuffer; } | 87 bool hasCreatedImageBuffer() const { return m_hasCreatedImageBuffer; } |
| 88 | 88 |
| 89 static const int DefaultWidth; | 89 static const int DefaultWidth; |
| 90 static const int DefaultHeight; | 90 static const int DefaultHeight; |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 void createImageBuffer() const; | 93 void createImageBuffer() const; |
| 94 | 94 |
| 95 static const float MaxCanvasArea; | 95 static const float MaxCanvasArea; |
| 96 #if PLATFORM(SKIA) |
| 97 static const float MaxSkiaDim; |
| 98 #endif |
| 96 | 99 |
| 97 IntSize m_size; | 100 IntSize m_size; |
| 98 | 101 |
| 99 float m_pageScaleFactor; | 102 float m_pageScaleFactor; |
| 100 bool m_originClean; | 103 bool m_originClean; |
| 101 | 104 |
| 102 // m_createdImageBuffer means we tried to malloc the buffer. We didn't nece
ssarily get it. | 105 // m_createdImageBuffer means we tried to malloc the buffer. We didn't nece
ssarily get it. |
| 103 mutable bool m_hasCreatedImageBuffer; | 106 mutable bool m_hasCreatedImageBuffer; |
| 104 mutable OwnPtr<ImageBuffer> m_imageBuffer; | 107 mutable OwnPtr<ImageBuffer> m_imageBuffer; |
| 105 }; | 108 }; |
| 106 | 109 |
| 107 } // namespace WebCore | 110 } // namespace WebCore |
| 108 | 111 |
| 109 #endif | 112 #endif |
| OLD | NEW |