blob: 96dcec311bfd03634fc76e15b1d04ce58ea0d57e [file] [log] [blame]
[email protected]0fb25002012-10-12 07:20:021// 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.
[email protected]cd57cc5a2012-10-12 22:43:414
[email protected]8fcbaa372012-11-05 04:12:415#ifndef CC_DEBUG_BORDER_DRAW_QUAD_H_
6#define CC_DEBUG_BORDER_DRAW_QUAD_H_
[email protected]cd57cc5a2012-10-12 22:43:417
[email protected]cd57cc5a2012-10-12 22:43:418#include "base/memory/scoped_ptr.h"
[email protected]52347c842012-11-02 21:06:209#include "cc/cc_export.h"
[email protected]aa0a9d32012-10-24 01:58:1010#include "cc/draw_quad.h"
[email protected]ddf9df82012-10-16 06:52:4611#include "third_party/skia/include/core/SkColor.h"
[email protected]cd57cc5a2012-10-12 22:43:4112
13namespace cc {
14
[email protected]52347c842012-11-02 21:06:2015class CC_EXPORT DebugBorderDrawQuad : public DrawQuad {
[email protected]c22418b2012-11-20 23:06:2616 public:
17 static scoped_ptr<DebugBorderDrawQuad> Create();
[email protected]cd57cc5a2012-10-12 22:43:4118
[email protected]c22418b2012-11-20 23:06:2619 void SetNew(const SharedQuadState* shared_quad_state,
20 gfx::Rect rect,
21 SkColor color,
22 int width);
[email protected]cd57cc5a2012-10-12 22:43:4123
[email protected]c22418b2012-11-20 23:06:2624 void SetAll(const SharedQuadState* shared_quad_state,
25 gfx::Rect rect,
26 gfx::Rect opaque_rect,
27 gfx::Rect visible_rect,
28 bool needs_blending,
29 SkColor color,
30 int width);
[email protected]cd57cc5a2012-10-12 22:43:4131
[email protected]c22418b2012-11-20 23:06:2632 SkColor color;
33 int width;
34
35 static const DebugBorderDrawQuad* MaterialCast(const DrawQuad*);
36 private:
37 DebugBorderDrawQuad();
[email protected]cd57cc5a2012-10-12 22:43:4138};
39
[email protected]cd57cc5a2012-10-12 22:43:4140}
41
[email protected]8fcbaa372012-11-05 04:12:4142#endif // CC_DEBUG_BORDER_DRAW_QUAD_H_