OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_ |
| 6 #define CC_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_ |
| 7 |
| 8 #include "cc/raster/raster_buffer_provider.h" |
| 9 |
| 10 namespace cc { |
| 11 |
| 12 // Fake RasterBufferProvider that just no-ops all calls. |
| 13 class FakeRasterBufferProviderImpl : public RasterBufferProvider { |
| 14 public: |
| 15 FakeRasterBufferProviderImpl(); |
| 16 ~FakeRasterBufferProviderImpl() override; |
| 17 |
| 18 // RasterBufferProvider methods. |
| 19 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( |
| 20 const Resource* resource, |
| 21 uint64_t resource_content_id, |
| 22 uint64_t previous_content_id) override; |
| 23 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; |
| 24 void OrderingBarrier() override; |
| 25 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; |
| 26 bool GetResourceRequiresSwizzle(bool must_support_alpha) const override; |
| 27 void Shutdown() override; |
| 28 }; |
| 29 |
| 30 } // namespace cc |
| 31 |
| 32 #endif // CC_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_ |
OLD | NEW |