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

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

Issue 26023004: aura: Allow delegated frames to be used by more than one impl layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: frameprovider: are_layers_attached checks Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl.cc ('k') | cc/resources/resource_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 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 <deque> 8 #include <deque>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 int GetImageStride(ResourceId id); 320 int GetImageStride(ResourceId id);
321 321
322 // For tests only! This prevents detecting uninitialized reads. 322 // For tests only! This prevents detecting uninitialized reads.
323 // Use SetPixels or LockForWrite to allocate implicitly. 323 // Use SetPixels or LockForWrite to allocate implicitly.
324 void AllocateForTesting(ResourceId id); 324 void AllocateForTesting(ResourceId id);
325 325
326 // For tests only! 326 // For tests only!
327 void CreateForTesting(ResourceId id); 327 void CreateForTesting(ResourceId id);
328 328
329 GLint WrapModeForTesting(ResourceId id); 329 GLint WrapModeForTesting(ResourceId id);
330 GLenum TargetForTesting(ResourceId id);
330 331
331 // Sets the current read fence. If a resource is locked for read 332 // Sets the current read fence. If a resource is locked for read
332 // and has read fences enabled, the resource will not allow writes 333 // and has read fences enabled, the resource will not allow writes
333 // until this fence has passed. 334 // until this fence has passed.
334 void SetReadLockFence(scoped_refptr<Fence> fence) { 335 void SetReadLockFence(scoped_refptr<Fence> fence) {
335 current_read_lock_fence_ = fence; 336 current_read_lock_fence_ = fence;
336 } 337 }
337 Fence* GetReadLockFence() { return current_read_lock_fence_.get(); } 338 Fence* GetReadLockFence() { return current_read_lock_fence_.get(); }
338 339
339 // Enable read lock fences for a specific resource. 340 // Enable read lock fences for a specific resource.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 484
484 scoped_refptr<Fence> current_read_lock_fence_; 485 scoped_refptr<Fence> current_read_lock_fence_;
485 bool use_rgba_4444_texture_format_; 486 bool use_rgba_4444_texture_format_;
486 487
487 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 488 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
488 }; 489 };
489 490
490 } // namespace cc 491 } // namespace cc
491 492
492 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 493 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698