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

Side by Side Diff: cc/raster/one_copy_raster_buffer_provider.h

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 #ifndef CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ 5 #ifndef CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_
6 #define CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ 6 #define CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 bool async_worker_context_enabled); 31 bool async_worker_context_enabled);
32 ~OneCopyRasterBufferProvider() override; 32 ~OneCopyRasterBufferProvider() override;
33 33
34 // Overridden from RasterBufferProvider: 34 // Overridden from RasterBufferProvider:
35 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 35 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
36 const Resource* resource, 36 const Resource* resource,
37 uint64_t resource_content_id, 37 uint64_t resource_content_id,
38 uint64_t previous_content_id) override; 38 uint64_t previous_content_id) override;
39 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; 39 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
40 void OrderingBarrier() override; 40 void OrderingBarrier() override;
41 void Flush() override;
41 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; 42 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
42 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; 43 bool IsResourceSwizzleRequired(bool must_support_alpha) const override;
43 bool CanPartialRasterIntoProvidedResource() const override; 44 bool CanPartialRasterIntoProvidedResource() const override;
44 bool IsResourceReadyToDraw(ResourceId id) const override; 45 bool IsResourceReadyToDraw(ResourceId id) const override;
45 uint64_t SetReadyToDrawCallback( 46 uint64_t SetReadyToDrawCallback(
46 const ResourceProvider::ResourceIdArray& resource_ids, 47 const ResourceProvider::ResourceIdArray& resource_ids,
47 const base::Closure& callback, 48 const base::Closure& callback,
48 uint64_t pending_callback_id) const override; 49 uint64_t pending_callback_id) const override;
49 void Shutdown() override; 50 void Shutdown() override;
50 51
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const bool async_worker_context_enabled_; 130 const bool async_worker_context_enabled_;
130 131
131 std::set<RasterBufferImpl*> pending_raster_buffers_; 132 std::set<RasterBufferImpl*> pending_raster_buffers_;
132 133
133 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); 134 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider);
134 }; 135 };
135 136
136 } // namespace cc 137 } // namespace cc
137 138
138 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ 139 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698