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

Side by Side Diff: cc/raster/bitmap_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/bitmap_raster_buffer_provider.h ('k') | cc/raster/gpu_raster_buffer_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 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
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
OLDNEW
« no previous file with comments | « cc/raster/bitmap_raster_buffer_provider.h ('k') | cc/raster/gpu_raster_buffer_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698