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 static PassOwnPtr<Canvas2DLayerBridge> create(PassRefPtr<GraphicsContext3D>
context, SkDeferredCanvas* canvas, OpacityMode opacityMode, ThreadMode threading
) | 59 static PassOwnPtr<Canvas2DLayerBridge> create(PassRefPtr<GraphicsContext3D>
context, SkDeferredCanvas* canvas, OpacityMode opacityMode, ThreadMode threading
) |
60 { | 60 { |
61 return adoptPtr(new Canvas2DLayerBridge(context, canvas, opacityMode, th
reading)); | 61 return adoptPtr(new Canvas2DLayerBridge(context, canvas, opacityMode, th
reading)); |
62 } | 62 } |
63 | 63 |
64 virtual ~Canvas2DLayerBridge(); | 64 virtual ~Canvas2DLayerBridge(); |
65 | 65 |
66 // WebKit::WebExternalTextureLayerClient implementation. | 66 // WebKit::WebExternalTextureLayerClient implementation. |
67 virtual unsigned prepareTexture(WebKit::WebTextureUpdater&) OVERRIDE; | 67 virtual unsigned prepareTexture(WebKit::WebTextureUpdater&) OVERRIDE; |
68 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; | 68 virtual WebKit::WebGraphicsContext3D* context() OVERRIDE; |
69 virtual bool prepareMailbox(WebKit::WebExternalTextureMailbox*) OVERRIDE; | 69 virtual bool prepareMailbox(WebKit::WebExternalTextureMailbox*, WebKit::WebE
xternalBitmap*) OVERRIDE; |
70 virtual void mailboxReleased(const WebKit::WebExternalTextureMailbox&) OVERR
IDE; | 70 virtual void mailboxReleased(const WebKit::WebExternalTextureMailbox&) OVERR
IDE; |
71 | 71 |
72 // SkDeferredCanvas::NotificationClient implementation | 72 // SkDeferredCanvas::NotificationClient implementation |
73 virtual void prepareForDraw() OVERRIDE; | 73 virtual void prepareForDraw() OVERRIDE; |
74 virtual void storageAllocatedForRecordingChanged(size_t) OVERRIDE; | 74 virtual void storageAllocatedForRecordingChanged(size_t) OVERRIDE; |
75 virtual void flushedDrawCommands() OVERRIDE; | 75 virtual void flushedDrawCommands() OVERRIDE; |
76 virtual void skippedPendingDrawCommands() OVERRIDE; | 76 virtual void skippedPendingDrawCommands() OVERRIDE; |
77 | 77 |
78 // Methods used by Canvas2DLayerManager | 78 // Methods used by Canvas2DLayerManager |
79 virtual size_t freeMemoryIfPossible(size_t); // virtual for mocking | 79 virtual size_t freeMemoryIfPossible(size_t); // virtual for mocking |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 MailboxInfo* createMailboxInfo(); | 119 MailboxInfo* createMailboxInfo(); |
120 | 120 |
121 uint32_t m_lastImageId; | 121 uint32_t m_lastImageId; |
122 Vector<MailboxInfo> m_mailboxes; | 122 Vector<MailboxInfo> m_mailboxes; |
123 #endif | 123 #endif |
124 }; | 124 }; |
125 | 125 |
126 } | 126 } |
127 | 127 |
128 #endif | 128 #endif |
OLD | NEW |