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

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

Issue 2945673002: Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: add test Created 3 years, 6 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 struct Resource; 66 struct Resource;
67 67
68 public: 68 public:
69 using ResourceIdArray = std::vector<ResourceId>; 69 using ResourceIdArray = std::vector<ResourceId>;
70 using ResourceIdMap = std::unordered_map<ResourceId, ResourceId>; 70 using ResourceIdMap = std::unordered_map<ResourceId, ResourceId>;
71 enum TextureHint { 71 enum TextureHint {
72 TEXTURE_HINT_DEFAULT = 0x0, 72 TEXTURE_HINT_DEFAULT = 0x0,
73 TEXTURE_HINT_IMMUTABLE = 0x1, 73 TEXTURE_HINT_IMMUTABLE = 0x1,
74 TEXTURE_HINT_FRAMEBUFFER = 0x2, 74 TEXTURE_HINT_FRAMEBUFFER = 0x2,
75 TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER = 75 TEXTURE_HINT_IMMUTABLE_FRAMEBUFFER =
76 TEXTURE_HINT_IMMUTABLE | TEXTURE_HINT_FRAMEBUFFER 76 TEXTURE_HINT_IMMUTABLE | TEXTURE_HINT_FRAMEBUFFER,
77 TEXTURE_HINT_IMAGE = 0x4
77 }; 78 };
78 enum ResourceType { 79 enum ResourceType {
79 RESOURCE_TYPE_GPU_MEMORY_BUFFER, 80 RESOURCE_TYPE_GPU_MEMORY_BUFFER,
80 RESOURCE_TYPE_GL_TEXTURE, 81 RESOURCE_TYPE_GL_TEXTURE,
81 RESOURCE_TYPE_BITMAP, 82 RESOURCE_TYPE_BITMAP,
82 }; 83 };
83 84
84 ResourceProvider(ContextProvider* compositor_context_provider, 85 ResourceProvider(ContextProvider* compositor_context_provider,
85 SharedBitmapManager* shared_bitmap_manager, 86 SharedBitmapManager* shared_bitmap_manager,
86 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 87 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 // Set of resource Ids that would like to be notified about promotion hints. 811 // Set of resource Ids that would like to be notified about promotion hints.
811 ResourceIdSet wants_promotion_hints_set_; 812 ResourceIdSet wants_promotion_hints_set_;
812 #endif 813 #endif
813 814
814 DISALLOW_COPY_AND_ASSIGN(ResourceProvider); 815 DISALLOW_COPY_AND_ASSIGN(ResourceProvider);
815 }; 816 };
816 817
817 } // namespace cc 818 } // namespace cc
818 819
819 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_ 820 #endif // CC_RESOURCES_RESOURCE_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/resources/resource_provider.cc » ('j') | gpu/command_buffer/build_gles2_cmd_buffer.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698