Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: cc/raster/zero_copy_raster_buffer_provider.cc

Issue 2555743004: Delay activation/draw on GPU tile work completion (Closed)
Patch Set: rebase compile fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/raster/zero_copy_raster_buffer_provider.h ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « cc/raster/zero_copy_raster_buffer_provider.h ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698