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

Side by Side Diff: cc/resources/resource_provider.h

Issue 2555743004: Delay activation/draw on GPU tile work completion (Closed)
Patch Set: cleanup 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_RESOURCES_RESOURCE_PROVIDER_H_ 5 #ifndef CC_RESOURCES_RESOURCE_PROVIDER_H_
6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_ 6 #define CC_RESOURCES_RESOURCE_PROVIDER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Update pixels from image, copying source_rect (in image) to dest_offset (in 155 // Update pixels from image, copying source_rect (in image) to dest_offset (in
156 // the resource). 156 // the resource).
157 void CopyToResource(ResourceId id, 157 void CopyToResource(ResourceId id,
158 const uint8_t* image, 158 const uint8_t* image,
159 const gfx::Size& image_size); 159 const gfx::Size& image_size);
160 160
161 // Generates sync tokesn for resources which need a sync token. 161 // Generates sync tokesn for resources which need a sync token.
162 void GenerateSyncTokenForResource(ResourceId resource_id); 162 void GenerateSyncTokenForResource(ResourceId resource_id);
163 void GenerateSyncTokenForResources(const ResourceIdArray& resource_ids); 163 void GenerateSyncTokenForResources(const ResourceIdArray& resource_ids);
164 164
165 // Gets the most recent sync token from the indicated resources.
166 gpu::SyncToken GetSyncTokenForResources(const ResourceIdArray& resource_ids);
167
165 // Creates accounting for a child. Returns a child ID. 168 // Creates accounting for a child. Returns a child ID.
166 int CreateChild(const ReturnCallback& return_callback); 169 int CreateChild(const ReturnCallback& return_callback);
167 170
168 // Destroys accounting for the child, deleting all accounted resources. 171 // Destroys accounting for the child, deleting all accounted resources.
169 void DestroyChild(int child); 172 void DestroyChild(int child);
170 173
171 // Sets whether resources need sync points set on them when returned to this 174 // Sets whether resources need sync points set on them when returned to this
172 // child. Defaults to true. 175 // child. Defaults to true.
173 void SetChildNeedsSyncTokens(int child, bool needs_sync_tokens); 176 void SetChildNeedsSyncTokens(int child, bool needs_sync_tokens);
174 177
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 // A process-unique ID used for disambiguating memory dumps from different 714 // A process-unique ID used for disambiguating memory dumps from different
712 // resource providers. 715 // resource providers.
713 int tracing_id_; 716 int tracing_id_;
714 717
715 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 718 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
716 }; 719 };
717 720
718 } // namespace cc 721 } // namespace cc
719 722
720 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 723 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698