OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/test/fake_raster_buffer_provider.h" | 5 #include "cc/test/fake_raster_buffer_provider.h" |
6 | 6 |
7 namespace cc { | 7 namespace cc { |
8 | 8 |
9 FakeRasterBufferProviderImpl::FakeRasterBufferProviderImpl() {} | 9 FakeRasterBufferProviderImpl::FakeRasterBufferProviderImpl() {} |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 ResourceFormat FakeRasterBufferProviderImpl::GetResourceFormat( | 26 ResourceFormat FakeRasterBufferProviderImpl::GetResourceFormat( |
27 bool must_support_alpha) const { | 27 bool must_support_alpha) const { |
28 return ResourceFormat::RGBA_8888; | 28 return ResourceFormat::RGBA_8888; |
29 } | 29 } |
30 | 30 |
31 bool FakeRasterBufferProviderImpl::IsResourceSwizzleRequired( | 31 bool FakeRasterBufferProviderImpl::IsResourceSwizzleRequired( |
32 bool must_support_alpha) const { | 32 bool must_support_alpha) const { |
33 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); | 33 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); |
34 } | 34 } |
35 | 35 |
36 bool FakeRasterBufferProviderImpl::IsPartialRasterSupported() const { | 36 bool FakeRasterBufferProviderImpl::CanPartialRasterIntoProvidedResource() |
| 37 const { |
37 return true; | 38 return true; |
38 } | 39 } |
39 | 40 |
40 void FakeRasterBufferProviderImpl::Shutdown() {} | 41 void FakeRasterBufferProviderImpl::Shutdown() {} |
41 | 42 |
42 } // namespace cc | 43 } // namespace cc |
OLD | NEW |