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 #include "cc/test/fake_raster_buffer_provider.h" |
| 6 |
| 7 namespace cc { |
| 8 |
| 9 FakeRasterBufferProviderImpl::FakeRasterBufferProviderImpl() {} |
| 10 |
| 11 FakeRasterBufferProviderImpl::~FakeRasterBufferProviderImpl() {} |
| 12 |
| 13 std::unique_ptr<RasterBuffer> |
| 14 FakeRasterBufferProviderImpl::AcquireBufferForRaster( |
| 15 const Resource* resource, |
| 16 uint64_t resource_content_id, |
| 17 uint64_t previous_content_id) { |
| 18 return nullptr; |
| 19 } |
| 20 |
| 21 void FakeRasterBufferProviderImpl::ReleaseBufferForRaster( |
| 22 std::unique_ptr<RasterBuffer> buffer) {} |
| 23 |
| 24 void FakeRasterBufferProviderImpl::OrderingBarrier() {} |
| 25 |
| 26 ResourceFormat FakeRasterBufferProviderImpl::GetResourceFormat( |
| 27 bool must_support_alpha) const { |
| 28 return ResourceFormat::RGBA_8888; |
| 29 } |
| 30 |
| 31 bool FakeRasterBufferProviderImpl::GetResourceRequiresSwizzle( |
| 32 bool must_support_alpha) const { |
| 33 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); |
| 34 } |
| 35 |
| 36 void FakeRasterBufferProviderImpl::Shutdown() {} |
| 37 |
| 38 } // namespace cc |
OLD | NEW |