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 FakeRasterBufferProviderImpl::~FakeRasterBufferProviderImpl() {} |
| 11 |
| 12 std::unique_ptr<RasterBuffer> |
| 13 FakeRasterBufferProviderImpl::AcquireBufferForRaster( |
| 14 const Resource* resource, |
| 15 uint64_t resource_content_id, |
| 16 uint64_t previous_content_id) { |
| 17 return nullptr; |
| 18 } |
| 19 void FakeRasterBufferProviderImpl::ReleaseBufferForRaster( |
| 20 std::unique_ptr<RasterBuffer> buffer) {} |
| 21 void FakeRasterBufferProviderImpl::BarrierToSyncResources() {} |
| 22 ResourceFormat FakeRasterBufferProviderImpl::GetResourceFormat( |
| 23 bool must_support_alpha) const { |
| 24 return ResourceFormat::RGBA_8888; |
| 25 } |
| 26 bool FakeRasterBufferProviderImpl::GetResourceRequiresSwizzle( |
| 27 bool must_support_alpha) const { |
| 28 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); |
| 29 } |
| 30 |
| 31 } // namespace cc |
OLD | NEW |