| 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 uint64_t BitmapRasterBufferProvider::SetReadyToDrawCallback( | 
|  | 120     const ResourceProvider::ResourceIdArray& resource_ids, | 
|  | 121     const base::Callback<void(uint64_t)>& callback, | 
|  | 122     uint64_t pending_callback_id) const { | 
|  | 123   // Bitmap resources are immediately ready to draw. | 
|  | 124   return 0; | 
|  | 125 } | 
|  | 126 | 
| 119 void BitmapRasterBufferProvider::Shutdown() {} | 127 void BitmapRasterBufferProvider::Shutdown() {} | 
| 120 | 128 | 
| 121 }  // namespace cc | 129 }  // namespace cc | 
| OLD | NEW | 
|---|