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

Side by Side Diff: cc/test/fake_raster_buffer_provider.h

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/resources/resource_provider_unittest.cc ('k') | cc/test/fake_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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_ 5 #ifndef CC_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_
6 #define CC_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_ 6 #define CC_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_
7 7
8 #include "cc/raster/raster_buffer_provider.h" 8 #include "cc/raster/raster_buffer_provider.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 // Fake RasterBufferProvider that just no-ops all calls. 12 // Fake RasterBufferProvider that just no-ops all calls.
13 class FakeRasterBufferProviderImpl : public RasterBufferProvider { 13 class FakeRasterBufferProviderImpl : public RasterBufferProvider {
14 public: 14 public:
15 FakeRasterBufferProviderImpl(); 15 FakeRasterBufferProviderImpl();
16 ~FakeRasterBufferProviderImpl() override; 16 ~FakeRasterBufferProviderImpl() override;
17 17
18 // RasterBufferProvider methods. 18 // RasterBufferProvider methods.
19 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 19 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
20 const Resource* resource, 20 const Resource* resource,
21 uint64_t resource_content_id, 21 uint64_t resource_content_id,
22 uint64_t previous_content_id) override; 22 uint64_t previous_content_id) override;
23 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; 23 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
24 void OrderingBarrier() override; 24 void OrderingBarrier() override;
25 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; 25 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
26 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; 26 bool IsResourceSwizzleRequired(bool must_support_alpha) const override;
27 bool CanPartialRasterIntoProvidedResource() const override; 27 bool CanPartialRasterIntoProvidedResource() const override;
28 bool IsResourceReadyToDraw(ResourceId id) const override;
29 uint64_t SetReadyToDrawCallback(
30 const ResourceProvider::ResourceIdArray& resource_ids,
31 const base::Callback<void()>& callback,
32 uint64_t pending_callback_id) const override;
28 void Shutdown() override; 33 void Shutdown() override;
29 }; 34 };
30 35
31 } // namespace cc 36 } // namespace cc
32 37
33 #endif // CC_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_ 38 #endif // CC_TEST_FAKE_RASTER_BUFFER_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/resources/resource_provider_unittest.cc ('k') | cc/test/fake_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698