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

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

Issue 1422103003: cc: Remove the ability to specify a GL texture target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 5 years, 1 month 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/resources/resource_pool_unittest.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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 ResourceType default_resource_type() const { return default_resource_type_; } 117 ResourceType default_resource_type() const { return default_resource_type_; }
118 ResourceType GetResourceType(ResourceId id); 118 ResourceType GetResourceType(ResourceId id);
119 119
120 // Creates a resource of the default resource type. 120 // Creates a resource of the default resource type.
121 ResourceId CreateResource(const gfx::Size& size, 121 ResourceId CreateResource(const gfx::Size& size,
122 TextureHint hint, 122 TextureHint hint,
123 ResourceFormat format); 123 ResourceFormat format);
124 124
125 // Creates a resource for a particular texture target (the distinction between 125 // Creates a resource for a particular texture target (the distinction between
126 // texture targets has no effect in software mode). 126 // texture targets has no effect in software mode).
127 ResourceId CreateResourceWithTextureTarget(const gfx::Size& size, 127 ResourceId CreateResourceWithImageTextureTarget(const gfx::Size& size,
128 GLenum target, 128 TextureHint hint,
129 TextureHint hint, 129 ResourceFormat format);
130 ResourceFormat format);
131 130
132 // Wraps an IOSurface into a GL resource. 131 // Wraps an IOSurface into a GL resource.
133 ResourceId CreateResourceFromIOSurface(const gfx::Size& size, 132 ResourceId CreateResourceFromIOSurface(const gfx::Size& size,
134 unsigned io_surface_id); 133 unsigned io_surface_id);
135 134
136 // Wraps an external texture mailbox into a GL resource. 135 // Wraps an external texture mailbox into a GL resource.
137 ResourceId CreateResourceFromTextureMailbox( 136 ResourceId CreateResourceFromTextureMailbox(
138 const TextureMailbox& mailbox, 137 const TextureMailbox& mailbox,
139 scoped_ptr<SingleReleaseCallbackImpl> release_callback_impl); 138 scoped_ptr<SingleReleaseCallbackImpl> release_callback_impl);
140 139
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 // A process-unique ID used for disambiguating memory dumps from different 592 // A process-unique ID used for disambiguating memory dumps from different
594 // resource providers. 593 // resource providers.
595 int tracing_id_; 594 int tracing_id_;
596 595
597 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 596 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
598 }; 597 };
599 598
600 } // namespace cc 599 } // namespace cc
601 600
602 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 601 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/resources/resource_pool_unittest.cc ('k') | cc/resources/resource_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698