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

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

Issue 2081863002: Revert of cc: Add mailbox support to ResourceProvider write locks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@worker_context_stream
Patch Set: manual revert Created 4 years, 6 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/test/fake_raster_buffer_provider.h ('k') | cc/test/fake_tile_manager.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 #include "cc/test/fake_raster_buffer_provider.h" 5 #include "cc/test/fake_raster_buffer_provider.h"
6 6
7 namespace cc { 7 namespace cc {
8 8
9 FakeRasterBufferProviderImpl::FakeRasterBufferProviderImpl() {} 9 FakeRasterBufferProviderImpl::FakeRasterBufferProviderImpl() {}
10 10
11 FakeRasterBufferProviderImpl::~FakeRasterBufferProviderImpl() {} 11 FakeRasterBufferProviderImpl::~FakeRasterBufferProviderImpl() {}
12 12
13 std::unique_ptr<RasterBuffer> 13 std::unique_ptr<RasterBuffer>
14 FakeRasterBufferProviderImpl::AcquireBufferForRaster( 14 FakeRasterBufferProviderImpl::AcquireBufferForRaster(
15 const Resource* resource, 15 const Resource* resource,
16 uint64_t resource_content_id, 16 uint64_t resource_content_id,
17 uint64_t previous_content_id) { 17 uint64_t previous_content_id) {
18 return nullptr; 18 return nullptr;
19 } 19 }
20 20
21 void FakeRasterBufferProviderImpl::ReleaseBufferForRaster( 21 void FakeRasterBufferProviderImpl::ReleaseBufferForRaster(
22 std::unique_ptr<RasterBuffer> buffer) {} 22 std::unique_ptr<RasterBuffer> buffer) {}
23 23
24 bool FakeRasterBufferProviderImpl::OrderingBarrier() { 24 void FakeRasterBufferProviderImpl::OrderingBarrier() {}
25 return true;
26 }
27 25
28 ResourceFormat FakeRasterBufferProviderImpl::GetResourceFormat( 26 ResourceFormat FakeRasterBufferProviderImpl::GetResourceFormat(
29 bool must_support_alpha) const { 27 bool must_support_alpha) const {
30 return ResourceFormat::RGBA_8888; 28 return ResourceFormat::RGBA_8888;
31 } 29 }
32 30
33 bool FakeRasterBufferProviderImpl::GetResourceRequiresSwizzle( 31 bool FakeRasterBufferProviderImpl::GetResourceRequiresSwizzle(
34 bool must_support_alpha) const { 32 bool must_support_alpha) const {
35 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); 33 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha));
36 } 34 }
37 35
38 void FakeRasterBufferProviderImpl::Shutdown() {} 36 void FakeRasterBufferProviderImpl::Shutdown() {}
39 37
40 } // namespace cc 38 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_raster_buffer_provider.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698