[Password Generation] Breakout UMA stats for generated passwords
[chromium-blink-merge.git] / cc / quads / largest_draw_quad.cc
blob55fcb22f43d50e619826c474d175f6c7e4c7453a
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "cc/quads/largest_draw_quad.h"
7 #include <algorithm>
9 #include "cc/quads/render_pass_draw_quad.h"
10 #include "cc/quads/stream_video_draw_quad.h"
12 namespace cc {
14 size_t LargestDrawQuadSize() {
15 // The largest quad is either a RenderPassDrawQuad or a StreamVideoDrawQuad
16 // depends on hardware structure.
17 return std::max(sizeof(RenderPassDrawQuad), sizeof(StreamVideoDrawQuad));
20 } // namespace cc