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

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

Issue 2814843002: gpu: GPU service scheduler. (Closed)
Patch Set: rebase Created 3 years, 7 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
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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 void BitmapRasterBufferProvider::ReleaseBufferForRaster( 92 void BitmapRasterBufferProvider::ReleaseBufferForRaster(
93 std::unique_ptr<RasterBuffer> buffer) { 93 std::unique_ptr<RasterBuffer> buffer) {
94 // Nothing to do here. RasterBufferImpl destructor cleans up after itself. 94 // Nothing to do here. RasterBufferImpl destructor cleans up after itself.
95 } 95 }
96 96
97 void BitmapRasterBufferProvider::OrderingBarrier() { 97 void BitmapRasterBufferProvider::OrderingBarrier() {
98 // No need to sync resources as this provider does not use GL context. 98 // No need to sync resources as this provider does not use GL context.
99 } 99 }
100 100
101 void BitmapRasterBufferProvider::Flush() {}
102
101 ResourceFormat BitmapRasterBufferProvider::GetResourceFormat( 103 ResourceFormat BitmapRasterBufferProvider::GetResourceFormat(
102 bool must_support_alpha) const { 104 bool must_support_alpha) const {
103 return resource_provider_->best_texture_format(); 105 return resource_provider_->best_texture_format();
104 } 106 }
105 107
106 bool BitmapRasterBufferProvider::IsResourceSwizzleRequired( 108 bool BitmapRasterBufferProvider::IsResourceSwizzleRequired(
107 bool must_support_alpha) const { 109 bool must_support_alpha) const {
108 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); 110 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha));
109 } 111 }
110 112
(...skipping 11 matching lines...) Expand all
122 const ResourceProvider::ResourceIdArray& resource_ids, 124 const ResourceProvider::ResourceIdArray& resource_ids,
123 const base::Closure& callback, 125 const base::Closure& callback,
124 uint64_t pending_callback_id) const { 126 uint64_t pending_callback_id) const {
125 // Bitmap resources are immediately ready to draw. 127 // Bitmap resources are immediately ready to draw.
126 return 0; 128 return 0;
127 } 129 }
128 130
129 void BitmapRasterBufferProvider::Shutdown() {} 131 void BitmapRasterBufferProvider::Shutdown() {}
130 132
131 } // namespace cc 133 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698