| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 118 bool ZeroCopyRasterBufferProvider::IsResourceSwizzleRequired( | 118 bool ZeroCopyRasterBufferProvider::IsResourceSwizzleRequired( | 
| 119     bool must_support_alpha) const { | 119     bool must_support_alpha) const { | 
| 120   return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); | 120   return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); | 
| 121 } | 121 } | 
| 122 | 122 | 
| 123 bool ZeroCopyRasterBufferProvider::CanPartialRasterIntoProvidedResource() | 123 bool ZeroCopyRasterBufferProvider::CanPartialRasterIntoProvidedResource() | 
| 124     const { | 124     const { | 
| 125   return false; | 125   return false; | 
| 126 } | 126 } | 
| 127 | 127 | 
|  | 128 bool ZeroCopyRasterBufferProvider::IsResourceReadyToDraw( | 
|  | 129     ResourceId resource_id) const { | 
|  | 130   // Zero-copy resources are immediately ready to draw. | 
|  | 131   return true; | 
|  | 132 } | 
|  | 133 | 
|  | 134 uint64_t ZeroCopyRasterBufferProvider::SetReadyToDrawCallback( | 
|  | 135     const ResourceProvider::ResourceIdArray& resource_ids, | 
|  | 136     const base::Closure& callback, | 
|  | 137     uint64_t pending_callback_id) const { | 
|  | 138   // Zero-copy resources are immediately ready to draw. | 
|  | 139   return 0; | 
|  | 140 } | 
|  | 141 | 
| 128 void ZeroCopyRasterBufferProvider::Shutdown() {} | 142 void ZeroCopyRasterBufferProvider::Shutdown() {} | 
| 129 | 143 | 
| 130 }  // namespace cc | 144 }  // namespace cc | 
| OLD | NEW | 
|---|