OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/zero_copy_raster_buffer_provider.h" | 5 #include "cc/raster/zero_copy_raster_buffer_provider.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 } | 109 } |
110 | 110 |
111 return resource_provider_->best_texture_format(); | 111 return resource_provider_->best_texture_format(); |
112 } | 112 } |
113 | 113 |
114 bool ZeroCopyRasterBufferProvider::IsResourceSwizzleRequired( | 114 bool ZeroCopyRasterBufferProvider::IsResourceSwizzleRequired( |
115 bool must_support_alpha) const { | 115 bool must_support_alpha) const { |
116 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); | 116 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); |
117 } | 117 } |
118 | 118 |
119 bool ZeroCopyRasterBufferProvider::IsPartialRasterSupported() const { | 119 bool ZeroCopyRasterBufferProvider::CanPartialRasterIntoProvidedResource() |
| 120 const { |
120 return false; | 121 return false; |
121 } | 122 } |
122 | 123 |
123 void ZeroCopyRasterBufferProvider::Shutdown() {} | 124 void ZeroCopyRasterBufferProvider::Shutdown() {} |
124 | 125 |
125 } // namespace cc | 126 } // namespace cc |
OLD | NEW |