| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/raster/bitmap_raster_buffer_provider.h" | 5 #include "cc/raster/bitmap_raster_buffer_provider.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 ResourceFormat BitmapRasterBufferProvider::GetResourceFormat( | 101 ResourceFormat BitmapRasterBufferProvider::GetResourceFormat( |
| 102 bool must_support_alpha) const { | 102 bool must_support_alpha) const { |
| 103 return resource_provider_->best_texture_format(); | 103 return resource_provider_->best_texture_format(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 bool BitmapRasterBufferProvider::IsResourceSwizzleRequired( | 106 bool BitmapRasterBufferProvider::IsResourceSwizzleRequired( |
| 107 bool must_support_alpha) const { | 107 bool must_support_alpha) const { |
| 108 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); | 108 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); |
| 109 } | 109 } |
| 110 | 110 |
| 111 bool BitmapRasterBufferProvider::IsPartialRasterSupported() const { | 111 bool BitmapRasterBufferProvider::CanPartialRasterIntoProvidedResource() const { |
| 112 return true; | 112 return true; |
| 113 } | 113 } |
| 114 | 114 |
| 115 void BitmapRasterBufferProvider::Shutdown() {} | 115 void BitmapRasterBufferProvider::Shutdown() {} |
| 116 | 116 |
| 117 } // namespace cc | 117 } // namespace cc |
| OLD | NEW |