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

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

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/test/fake_raster_buffer_provider.h ('k') | cc/tiles/picture_layer_tiling.h » ('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
(...skipping 20 matching lines...) Expand all
31 bool FakeRasterBufferProviderImpl::IsResourceSwizzleRequired( 31 bool FakeRasterBufferProviderImpl::IsResourceSwizzleRequired(
32 bool must_support_alpha) const { 32 bool must_support_alpha) const {
33 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha)); 33 return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha));
34 } 34 }
35 35
36 bool FakeRasterBufferProviderImpl::CanPartialRasterIntoProvidedResource() 36 bool FakeRasterBufferProviderImpl::CanPartialRasterIntoProvidedResource()
37 const { 37 const {
38 return true; 38 return true;
39 } 39 }
40 40
41 bool FakeRasterBufferProviderImpl::IsResourceReadyToDraw(
42 ResourceId resource_id) const {
43 return true;
44 }
45
46 uint64_t FakeRasterBufferProviderImpl::SetReadyToDrawCallback(
47 const ResourceProvider::ResourceIdArray& resource_ids,
48 const base::Callback<void()>& callback,
49 uint64_t pending_callback_id) const {
50 return 0;
51 }
52
41 void FakeRasterBufferProviderImpl::Shutdown() {} 53 void FakeRasterBufferProviderImpl::Shutdown() {}
42 54
43 } // namespace cc 55 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_raster_buffer_provider.h ('k') | cc/tiles/picture_layer_tiling.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698