OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 public: | 121 public: |
122 WebSize size() override | 122 WebSize size() override |
123 { | 123 { |
124 return WebSize(); | 124 return WebSize(); |
125 } | 125 } |
126 | 126 |
127 void setSize(WebSize) override | 127 void setSize(WebSize) override |
128 { | 128 { |
129 } | 129 } |
130 | 130 |
131 uint8* pixels() override | 131 uint8_t* pixels() override |
132 { | 132 { |
133 return nullptr; | 133 return nullptr; |
134 } | 134 } |
135 }; | 135 }; |
136 | 136 |
137 } // anonymous namespace | 137 } // anonymous namespace |
138 | 138 |
139 class Canvas2DLayerBridgeTest : public Test { | 139 class Canvas2DLayerBridgeTest : public Test { |
140 public: | 140 public: |
141 PassRefPtr<Canvas2DLayerBridge> makeBridge(PassOwnPtr<MockWebGraphicsContext
3DProvider> provider, const IntSize& size, Canvas2DLayerBridge::AccelerationMode
accelerationMode) | 141 PassRefPtr<Canvas2DLayerBridge> makeBridge(PassOwnPtr<MockWebGraphicsContext
3DProvider> provider, const IntSize& size, Canvas2DLayerBridge::AccelerationMode
accelerationMode) |
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
966 // Tear down the bridge on the thread so that 'bridge' can go out of scope | 966 // Tear down the bridge on the thread so that 'bridge' can go out of scope |
967 // without crashing due to thread checks | 967 // without crashing due to thread checks |
968 OwnPtr<WebWaitableEvent> bridgeDestroyedEvent = adoptPtr(Platform::current()
->createWaitableEvent()); | 968 OwnPtr<WebWaitableEvent> bridgeDestroyedEvent = adoptPtr(Platform::current()
->createWaitableEvent()); |
969 testThread->taskRunner()->postTask(BLINK_FROM_HERE, new DestroyBridgeTask(&b
ridge, bridgeDestroyedEvent.get())); | 969 testThread->taskRunner()->postTask(BLINK_FROM_HERE, new DestroyBridgeTask(&b
ridge, bridgeDestroyedEvent.get())); |
970 bridgeDestroyedEvent->wait(); | 970 bridgeDestroyedEvent->wait(); |
971 | 971 |
972 ::testing::Mock::VerifyAndClearExpectations(&mainMock); | 972 ::testing::Mock::VerifyAndClearExpectations(&mainMock); |
973 } | 973 } |
974 | 974 |
975 } // namespace blink | 975 } // namespace blink |
OLD | NEW |