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

Side by Side Diff: cc/quads/draw_quad_unittest.cc

Issue 2229953003: Support for custom primaries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test updated Created 4 years, 3 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/color_lut_cache.cc ('k') | cc/quads/largest_draw_quad.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 #include "cc/quads/draw_quad.h" 5 #include "cc/quads/draw_quad.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 case DrawQuad::SURFACE_CONTENT: 962 case DrawQuad::SURFACE_CONTENT:
963 largest = std::max(largest, sizeof(SurfaceDrawQuad)); 963 largest = std::max(largest, sizeof(SurfaceDrawQuad));
964 break; 964 break;
965 case DrawQuad::TILED_CONTENT: 965 case DrawQuad::TILED_CONTENT:
966 largest = std::max(largest, sizeof(TileDrawQuad)); 966 largest = std::max(largest, sizeof(TileDrawQuad));
967 break; 967 break;
968 case DrawQuad::STREAM_VIDEO_CONTENT: 968 case DrawQuad::STREAM_VIDEO_CONTENT:
969 largest = std::max(largest, sizeof(StreamVideoDrawQuad)); 969 largest = std::max(largest, sizeof(StreamVideoDrawQuad));
970 break; 970 break;
971 case DrawQuad::YUV_VIDEO_CONTENT: 971 case DrawQuad::YUV_VIDEO_CONTENT:
972 largest = std::max(largest, sizeof(YUVVideoDrawQuad)); 972 largest = std::max(largest,
973 sizeof(YUVVideoDrawQuad) + sizeof(gfx::ColorSpace));
973 break; 974 break;
974 case DrawQuad::INVALID: 975 case DrawQuad::INVALID:
975 break; 976 break;
976 } 977 }
977 } 978 }
978 EXPECT_EQ(LargestDrawQuadSize(), largest); 979 EXPECT_EQ(LargestDrawQuadSize(), largest);
979 980
980 if (!HasFailure()) 981 if (!HasFailure())
981 return; 982 return;
982 983
(...skipping 30 matching lines...) Expand all
1013 LOG(ERROR) << "YUVVideoDrawQuad " << sizeof(YUVVideoDrawQuad); 1014 LOG(ERROR) << "YUVVideoDrawQuad " << sizeof(YUVVideoDrawQuad);
1014 break; 1015 break;
1015 case DrawQuad::INVALID: 1016 case DrawQuad::INVALID:
1016 break; 1017 break;
1017 } 1018 }
1018 } 1019 }
1019 } 1020 }
1020 1021
1021 } // namespace 1022 } // namespace
1022 } // namespace cc 1023 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/color_lut_cache.cc ('k') | cc/quads/largest_draw_quad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698