| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 bool BitmapRasterBufferProvider::IsResourceSwizzleRequired( | 110 bool BitmapRasterBufferProvider::IsResourceSwizzleRequired( |
| 111 bool must_support_alpha) const { | 111 bool must_support_alpha) const { |
| 112 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); | 112 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); |
| 113 } | 113 } |
| 114 | 114 |
| 115 bool BitmapRasterBufferProvider::CanPartialRasterIntoProvidedResource() const { | 115 bool BitmapRasterBufferProvider::CanPartialRasterIntoProvidedResource() const { |
| 116 return true; | 116 return true; |
| 117 } | 117 } |
| 118 | 118 |
| 119 bool BitmapRasterBufferProvider::IsResourceReadyToDraw( |
| 120 ResourceId resource_id) const { |
| 121 // Bitmap resources are immediately ready to draw. |
| 122 return true; |
| 123 } |
| 124 |
| 125 uint64_t BitmapRasterBufferProvider::SetReadyToDrawCallback( |
| 126 const ResourceProvider::ResourceIdArray& resource_ids, |
| 127 const base::Closure& callback, |
| 128 uint64_t pending_callback_id) const { |
| 129 // Bitmap resources are immediately ready to draw. |
| 130 return 0; |
| 131 } |
| 132 |
| 119 void BitmapRasterBufferProvider::Shutdown() {} | 133 void BitmapRasterBufferProvider::Shutdown() {} |
| 120 | 134 |
| 121 } // namespace cc | 135 } // namespace cc |
| OLD | NEW |