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

Side by Side Diff: cc/output/buffer_to_texture_target_map.h

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint 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
« no previous file with comments | « cc/output/begin_frame_args.h ('k') | cc/output/compositor_frame.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_OUTPUT_BUFFER_TO_TEXTURE_TARGET_MAP_H_ 5 #ifndef CC_OUTPUT_BUFFER_TO_TEXTURE_TARGET_MAP_H_
6 #define CC_OUTPUT_BUFFER_TO_TEXTURE_TARGET_MAP_H_ 6 #define CC_OUTPUT_BUFFER_TO_TEXTURE_TARGET_MAP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "cc/base/cc_export.h" 11 #include "cc/cc_export.h"
12 #include "ui/gfx/buffer_types.h" 12 #include "ui/gfx/buffer_types.h"
13 13
14 namespace cc { 14 namespace cc {
15 // A map of GPU Memory Buffer usage/format to GL texture target. 15 // A map of GPU Memory Buffer usage/format to GL texture target.
16 using BufferToTextureTargetKey = std::pair<gfx::BufferUsage, gfx::BufferFormat>; 16 using BufferToTextureTargetKey = std::pair<gfx::BufferUsage, gfx::BufferFormat>;
17 using BufferToTextureTargetMap = std::map<BufferToTextureTargetKey, uint32_t>; 17 using BufferToTextureTargetMap = std::map<BufferToTextureTargetKey, uint32_t>;
18 18
19 // Converts a serialized ImageTextureTargetsMap back to the runtime format. 19 // Converts a serialized ImageTextureTargetsMap back to the runtime format.
20 // Serialization takes the form: 20 // Serialization takes the form:
21 // "usage,format,target;usage,format,target;...;usage,format,target" 21 // "usage,format,target;usage,format,target;...;usage,format,target"
22 CC_EXPORT BufferToTextureTargetMap 22 CC_EXPORT BufferToTextureTargetMap
23 StringToBufferToTextureTargetMap(const std::string& str); 23 StringToBufferToTextureTargetMap(const std::string& str);
24 24
25 // Converts an ImageTextureTargetsMap to a string representation of the format: 25 // Converts an ImageTextureTargetsMap to a string representation of the format:
26 // "usage,format,target;usage,format,target;...;usage,format,target" 26 // "usage,format,target;usage,format,target;...;usage,format,target"
27 CC_EXPORT std::string BufferToTextureTargetMapToString( 27 CC_EXPORT std::string BufferToTextureTargetMapToString(
28 const BufferToTextureTargetMap& map); 28 const BufferToTextureTargetMap& map);
29 29
30 // Returns a default-initialized BufferToTextureTargetsMap where every entry 30 // Returns a default-initialized BufferToTextureTargetsMap where every entry
31 // maps to GL_TEXTURE_2D. 31 // maps to GL_TEXTURE_2D.
32 CC_EXPORT BufferToTextureTargetMap DefaultBufferToTextureTargetMapForTesting(); 32 CC_EXPORT BufferToTextureTargetMap DefaultBufferToTextureTargetMapForTesting();
33 33
34 } // namespace cc 34 } // namespace cc
35 35
36 #endif // CC_OUTPUT_BUFFER_TO_TEXTURE_TARGET_MAP_H_ 36 #endif // CC_OUTPUT_BUFFER_TO_TEXTURE_TARGET_MAP_H_
OLDNEW
« no previous file with comments | « cc/output/begin_frame_args.h ('k') | cc/output/compositor_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698