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

Side by Side Diff: cc/raster/bitmap_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 | « no previous file | cc/raster/bitmap_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 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_BITMAP_RASTER_BUFFER_PROVIDER_H_ 5 #ifndef CC_RASTER_BITMAP_RASTER_BUFFER_PROVIDER_H_
6 #define CC_RASTER_BITMAP_RASTER_BUFFER_PROVIDER_H_ 6 #define CC_RASTER_BITMAP_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 16 matching lines...) Expand all
27 static std::unique_ptr<RasterBufferProvider> Create( 27 static std::unique_ptr<RasterBufferProvider> Create(
28 ResourceProvider* resource_provider); 28 ResourceProvider* resource_provider);
29 29
30 // Overridden from RasterBufferProvider: 30 // Overridden from RasterBufferProvider:
31 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 31 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
32 const Resource* resource, 32 const Resource* resource,
33 uint64_t resource_content_id, 33 uint64_t resource_content_id,
34 uint64_t previous_content_id) override; 34 uint64_t previous_content_id) override;
35 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; 35 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
36 void OrderingBarrier() override; 36 void OrderingBarrier() override;
37 bool IsResourceReadyToDraw(const Resource* resource) override;
38 void SignalResourcesReadyToDraw(const std::vector<const Resource*>& resources,
39 const base::Closure& callback) override;
37 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; 40 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
38 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; 41 bool IsResourceSwizzleRequired(bool must_support_alpha) const override;
39 bool CanPartialRasterIntoProvidedResource() const override; 42 bool CanPartialRasterIntoProvidedResource() const override;
40 void Shutdown() override; 43 void Shutdown() override;
41 44
42 protected: 45 protected:
43 explicit BitmapRasterBufferProvider(ResourceProvider* resource_provider); 46 explicit BitmapRasterBufferProvider(ResourceProvider* resource_provider);
44 47
45 private: 48 private:
46 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() 49 std::unique_ptr<base::trace_event::ConvertableToTraceFormat> StateAsValue()
47 const; 50 const;
48 51
49 ResourceProvider* resource_provider_; 52 ResourceProvider* resource_provider_;
50 53
51 DISALLOW_COPY_AND_ASSIGN(BitmapRasterBufferProvider); 54 DISALLOW_COPY_AND_ASSIGN(BitmapRasterBufferProvider);
52 }; 55 };
53 56
54 } // namespace cc 57 } // namespace cc
55 58
56 #endif // CC_RASTER_BITMAP_RASTER_BUFFER_PROVIDER_H_ 59 #endif // CC_RASTER_BITMAP_RASTER_BUFFER_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/raster/bitmap_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698