| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 virtual bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap*)
override; | 59 virtual bool prepareMailbox(WebExternalTextureMailbox*, WebExternalBitmap*)
override; |
| 60 virtual void mailboxReleased(const WebExternalTextureMailbox&, bool lostReso
urce) override; | 60 virtual void mailboxReleased(const WebExternalTextureMailbox&, bool lostReso
urce) override; |
| 61 | 61 |
| 62 // SkDeferredCanvas::NotificationClient implementation | 62 // SkDeferredCanvas::NotificationClient implementation |
| 63 virtual void prepareForDraw() override; | 63 virtual void prepareForDraw() override; |
| 64 virtual void storageAllocatedForRecordingChanged(size_t) override; | 64 virtual void storageAllocatedForRecordingChanged(size_t) override; |
| 65 virtual void flushedDrawCommands() override; | 65 virtual void flushedDrawCommands() override; |
| 66 virtual void skippedPendingDrawCommands() override; | 66 virtual void skippedPendingDrawCommands() override; |
| 67 | 67 |
| 68 // ImageBufferSurface implementation | 68 // ImageBufferSurface implementation |
| 69 void finalizeFrame(const FloatRect &dirtyRect); | 69 void finalizeFrame(); |
| 70 void willAccessPixels(); | 70 void willAccessPixels(); |
| 71 SkCanvas* canvas() const { return m_canvas.get(); } | 71 SkCanvas* canvas() const { return m_canvas.get(); } |
| 72 bool checkSurfaceValid(); | 72 bool checkSurfaceValid(); |
| 73 bool restoreSurface(); | 73 bool restoreSurface(); |
| 74 WebLayer* layer() const; | 74 WebLayer* layer() const; |
| 75 Platform3DObject getBackingTexture(); | 75 Platform3DObject getBackingTexture(); |
| 76 bool isAccelerated() const { return true; } | 76 bool isAccelerated() const { return true; } |
| 77 void setIsHidden(bool); | 77 void setIsHidden(bool); |
| 78 void setImageBuffer(ImageBuffer* imageBuffer) { m_imageBuffer = imageBuffer;
} | 78 void setImageBuffer(ImageBuffer* imageBuffer) { m_imageBuffer = imageBuffer;
} |
| 79 | 79 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 MailboxInfo* releasedMailboxInfo(); | 136 MailboxInfo* releasedMailboxInfo(); |
| 137 | 137 |
| 138 uint32_t m_lastImageId; | 138 uint32_t m_lastImageId; |
| 139 Vector<MailboxInfo> m_mailboxes; | 139 Vector<MailboxInfo> m_mailboxes; |
| 140 int m_releasedMailboxInfoIndex; | 140 int m_releasedMailboxInfoIndex; |
| 141 }; | 141 }; |
| 142 | 142 |
| 143 } // namespace blink | 143 } // namespace blink |
| 144 | 144 |
| 145 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_CANVAS2DLAYERBRIDGE_H_ | 145 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_CANVAS2DLAYERBRIDGE_H_ |
| OLD | NEW |