Revert of Telemetry, Mac: Use the actual keychain for performance tests. (patchset...
[chromium-blink-merge.git] / cc / quads / tile_draw_quad.h
blobd776057ab5f5ae184e1a3e0459f1680d3c552818
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
3 // found in the LICENSE file.
5 #ifndef CC_QUADS_TILE_DRAW_QUAD_H_
6 #define CC_QUADS_TILE_DRAW_QUAD_H_
8 #include "cc/quads/content_draw_quad_base.h"
10 namespace cc {
12 class CC_EXPORT TileDrawQuad : public ContentDrawQuadBase {
13 public:
14 TileDrawQuad();
15 ~TileDrawQuad() override;
17 void SetNew(const SharedQuadState* shared_quad_state,
18 const gfx::Rect& rect,
19 const gfx::Rect& opaque_rect,
20 const gfx::Rect& visible_rect,
21 unsigned resource_id,
22 const gfx::RectF& tex_coord_rect,
23 const gfx::Size& texture_size,
24 bool swizzle_contents);
26 void SetAll(const SharedQuadState* shared_quad_state,
27 const gfx::Rect& rect,
28 const gfx::Rect& opaque_rect,
29 const gfx::Rect& visible_rect,
30 bool needs_blending,
31 unsigned resource_id,
32 const gfx::RectF& tex_coord_rect,
33 const gfx::Size& texture_size,
34 bool swizzle_contents);
36 unsigned resource_id;
38 void IterateResources(const ResourceIteratorCallback& callback) override;
40 static const TileDrawQuad* MaterialCast(const DrawQuad*);
42 private:
43 void ExtendValue(base::debug::TracedValue* value) const override;
46 } // namespace cc
48 #endif // CC_QUADS_TILE_DRAW_QUAD_H_