[email protected] | 0fb2500 | 2012-10-12 07:20:02 | [diff] [blame] | 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. | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 4 | |
[email protected] | 8fcbaa37 | 2012-11-05 04:12:41 | [diff] [blame] | 5 | #ifndef CC_DEBUG_BORDER_DRAW_QUAD_H_ |
6 | #define CC_DEBUG_BORDER_DRAW_QUAD_H_ | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 7 | |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 8 | #include "base/memory/scoped_ptr.h" |
[email protected] | 52347c84 | 2012-11-02 21:06:20 | [diff] [blame] | 9 | #include "cc/cc_export.h" |
[email protected] | aa0a9d3 | 2012-10-24 01:58:10 | [diff] [blame] | 10 | #include "cc/draw_quad.h" |
[email protected] | ddf9df8 | 2012-10-16 06:52:46 | [diff] [blame] | 11 | #include "third_party/skia/include/core/SkColor.h" |
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 12 | |
13 | namespace cc { | ||||
14 | |||||
[email protected] | 52347c84 | 2012-11-02 21:06:20 | [diff] [blame] | 15 | class CC_EXPORT DebugBorderDrawQuad : public DrawQuad { |
[email protected] | c22418b | 2012-11-20 23:06:26 | [diff] [blame] | 16 | public: |
17 | static scoped_ptr<DebugBorderDrawQuad> Create(); | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 18 | |
[email protected] | c22418b | 2012-11-20 23:06:26 | [diff] [blame] | 19 | void SetNew(const SharedQuadState* shared_quad_state, |
20 | gfx::Rect rect, | ||||
21 | SkColor color, | ||||
22 | int width); | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 23 | |
[email protected] | c22418b | 2012-11-20 23:06:26 | [diff] [blame] | 24 | 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] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 31 | |
[email protected] | c22418b | 2012-11-20 23:06:26 | [diff] [blame] | 32 | SkColor color; |
33 | int width; | ||||
34 | |||||
35 | static const DebugBorderDrawQuad* MaterialCast(const DrawQuad*); | ||||
36 | private: | ||||
37 | DebugBorderDrawQuad(); | ||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 38 | }; |
39 | |||||
[email protected] | cd57cc5a | 2012-10-12 22:43:41 | [diff] [blame] | 40 | } |
41 | |||||
[email protected] | 8fcbaa37 | 2012-11-05 04:12:41 | [diff] [blame] | 42 | #endif // CC_DEBUG_BORDER_DRAW_QUAD_H_ |