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"
9 #include "cc/quads/render_pass_draw_quad.h"
10 #include "cc/quads/stream_video_draw_quad.h"
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
));