| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * | 7 * |
| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void freeTransientResources(); | 87 void freeTransientResources(); |
| 88 bool hasTransientResources() const; | 88 bool hasTransientResources() const; |
| 89 bool isHidden() { return m_isHidden; } | 89 bool isHidden() { return m_isHidden; } |
| 90 | 90 |
| 91 void beginDestruction(); | 91 void beginDestruction(); |
| 92 | 92 |
| 93 protected: | 93 protected: |
| 94 Canvas2DLayerBridge(PassOwnPtr<blink::WebGraphicsContext3DProvider>, PassOwn
Ptr<SkDeferredCanvas>, int, OpacityMode); | 94 Canvas2DLayerBridge(PassOwnPtr<blink::WebGraphicsContext3DProvider>, PassOwn
Ptr<SkDeferredCanvas>, int, OpacityMode); |
| 95 void setRateLimitingEnabled(bool); | 95 void setRateLimitingEnabled(bool); |
| 96 bool releasedMailboxHasExpired(); | 96 bool releasedMailboxHasExpired(); |
| 97 void resetLastImageIdIfNecessary(); |
| 97 | 98 |
| 98 OwnPtr<SkDeferredCanvas> m_canvas; | 99 OwnPtr<SkDeferredCanvas> m_canvas; |
| 99 OwnPtr<blink::WebExternalTextureLayer> m_layer; | 100 OwnPtr<blink::WebExternalTextureLayer> m_layer; |
| 100 OwnPtr<blink::WebGraphicsContext3DProvider> m_contextProvider; | 101 OwnPtr<blink::WebGraphicsContext3DProvider> m_contextProvider; |
| 101 int m_msaaSampleCount; | 102 int m_msaaSampleCount; |
| 102 size_t m_bytesAllocated; | 103 size_t m_bytesAllocated; |
| 103 bool m_didRecordDrawCommand; | 104 bool m_didRecordDrawCommand; |
| 104 bool m_surfaceIsValid; | 105 bool m_surfaceIsValid; |
| 105 int m_framesPending; | 106 int m_framesPending; |
| 106 int m_framesSinceMailboxRelease; | 107 int m_framesSinceMailboxRelease; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 130 }; | 131 }; |
| 131 MailboxInfo* createMailboxInfo(); | 132 MailboxInfo* createMailboxInfo(); |
| 132 MailboxInfo* releasedMailboxInfo(); | 133 MailboxInfo* releasedMailboxInfo(); |
| 133 | 134 |
| 134 uint32_t m_lastImageId; | 135 uint32_t m_lastImageId; |
| 135 Vector<MailboxInfo> m_mailboxes; | 136 Vector<MailboxInfo> m_mailboxes; |
| 136 int m_releasedMailboxInfoIndex; | 137 int m_releasedMailboxInfoIndex; |
| 137 }; | 138 }; |
| 138 } | 139 } |
| 139 #endif | 140 #endif |
| OLD | NEW |