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

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

Issue 2683763003: cc: make resource keep video buffer format for hardware overlay.
Patch Set: make Resource keep video buffer format Created 3 years, 9 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
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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 gfx::BufferUsage usage, 147 gfx::BufferUsage usage,
148 const gfx::ColorSpace& color_space); 148 const gfx::ColorSpace& color_space);
149 149
150 // Wraps an external texture mailbox into a GL resource. 150 // Wraps an external texture mailbox into a GL resource.
151 ResourceId CreateResourceFromTextureMailbox( 151 ResourceId CreateResourceFromTextureMailbox(
152 const TextureMailbox& mailbox, 152 const TextureMailbox& mailbox,
153 std::unique_ptr<SingleReleaseCallbackImpl> release_callback_impl); 153 std::unique_ptr<SingleReleaseCallbackImpl> release_callback_impl);
154 154
155 ResourceId CreateResourceFromTextureMailbox( 155 ResourceId CreateResourceFromTextureMailbox(
156 const TextureMailbox& mailbox, 156 const TextureMailbox& mailbox,
157 gfx::BufferFormat buffer_format,
157 std::unique_ptr<SingleReleaseCallbackImpl> release_callback_impl, 158 std::unique_ptr<SingleReleaseCallbackImpl> release_callback_impl,
158 bool read_lock_fences_enabled); 159 bool read_lock_fences_enabled);
159 160
160 void DeleteResource(ResourceId id); 161 void DeleteResource(ResourceId id);
161 // In the case of GPU resources, we may need to flush the GL context to ensure 162 // In the case of GPU resources, we may need to flush the GL context to ensure
162 // that texture deletions are seen in a timely fashion. This function should 163 // that texture deletions are seen in a timely fashion. This function should
163 // be called after texture deletions that may happen during an idle state. 164 // be called after texture deletions that may happen during an idle state.
164 void FlushPendingDeletions() const; 165 void FlushPendingDeletions() const;
165 166
166 // Update pixels from image, copying source_rect (in image) to dest_offset (in 167 // Update pixels from image, copying source_rect (in image) to dest_offset (in
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 // Set of resource Ids that would like to be notified about promotion hints. 789 // Set of resource Ids that would like to be notified about promotion hints.
789 ResourceIdSet wants_promotion_hints_set_; 790 ResourceIdSet wants_promotion_hints_set_;
790 #endif 791 #endif
791 792
792 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 793 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
793 }; 794 };
794 795
795 } // namespace cc 796 } // namespace cc
796 797
797 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 798 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698