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

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

Issue 2440093003: WIP GPU scheduler + delayed activation / tile draw
Patch Set: SignalSyncToken -> IsFenceSyncReleased Created 4 years 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/raster_buffer_provider.h ('k') | cc/raster/zero_copy_raster_buffer_provider.cc » ('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 #ifndef CC_RASTER_ZERO_COPY_RASTER_BUFFER_PROVIDER_H_ 5 #ifndef CC_RASTER_ZERO_COPY_RASTER_BUFFER_PROVIDER_H_
6 #define CC_RASTER_ZERO_COPY_RASTER_BUFFER_PROVIDER_H_ 6 #define CC_RASTER_ZERO_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 18 matching lines...) Expand all
29 ResourceProvider* resource_provider, 29 ResourceProvider* resource_provider,
30 ResourceFormat preferred_tile_format); 30 ResourceFormat preferred_tile_format);
31 31
32 // Overridden from RasterBufferProvider: 32 // Overridden from RasterBufferProvider:
33 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 33 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
34 const Resource* resource, 34 const Resource* resource,
35 uint64_t resource_content_id, 35 uint64_t resource_content_id,
36 uint64_t previous_content_id) override; 36 uint64_t previous_content_id) override;
37 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; 37 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
38 void OrderingBarrier() override; 38 void OrderingBarrier() override;
39 bool IsResourceReadyToDraw(const Resource* resource) override;
40 void SignalResourcesReadyToDraw(const std::vector<const Resource*>& resources,
41 const base::Closure& callback) override;
39 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; 42 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
40 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; 43 bool IsResourceSwizzleRequired(bool must_support_alpha) const override;
41 bool CanPartialRasterIntoProvidedResource() const override; 44 bool CanPartialRasterIntoProvidedResource() const override;
42 void Shutdown() override; 45 void Shutdown() override;
43 46
44 protected: 47 protected:
45 ZeroCopyRasterBufferProvider(ResourceProvider* resource_provider, 48 ZeroCopyRasterBufferProvider(ResourceProvider* resource_provider,
46 ResourceFormat preferred_tile_format); 49 ResourceFormat preferred_tile_format);
47 50
48 private: 51 private:
49 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() 52 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> StateAsValue()
50 const; 53 const;
51 54
52 ResourceProvider* resource_provider_; 55 ResourceProvider* resource_provider_;
53 ResourceFormat preferred_tile_format_; 56 ResourceFormat preferred_tile_format_;
54 57
55 DISALLOW_COPY_AND_ASSIGN(ZeroCopyRasterBufferProvider); 58 DISALLOW_COPY_AND_ASSIGN(ZeroCopyRasterBufferProvider);
56 }; 59 };
57 60
58 } // namespace cc 61 } // namespace cc
59 62
60 #endif // CC_RASTER_ZERO_COPY_RASTER_BUFFER_PROVIDER_H_ 63 #endif // CC_RASTER_ZERO_COPY_RASTER_BUFFER_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/raster/raster_buffer_provider.h ('k') | cc/raster/zero_copy_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698