Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: cc/quads/draw_quad.h

Issue 149033003: Apply automatic range checks to CC enum types across IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/output/filter_operation.h ('k') | cc/quads/io_surface_draw_quad.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_QUADS_DRAW_QUAD_H_ 5 #ifndef CC_QUADS_DRAW_QUAD_H_
6 #define CC_QUADS_DRAW_QUAD_H_ 6 #define CC_QUADS_DRAW_QUAD_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/quads/shared_quad_state.h" 10 #include "cc/quads/shared_quad_state.h"
(...skipping 25 matching lines...) Expand all
36 DEBUG_BORDER, 36 DEBUG_BORDER,
37 IO_SURFACE_CONTENT, 37 IO_SURFACE_CONTENT,
38 PICTURE_CONTENT, 38 PICTURE_CONTENT,
39 RENDER_PASS, 39 RENDER_PASS,
40 SOLID_COLOR, 40 SOLID_COLOR,
41 STREAM_VIDEO_CONTENT, 41 STREAM_VIDEO_CONTENT,
42 SURFACE_CONTENT, 42 SURFACE_CONTENT,
43 TEXTURE_CONTENT, 43 TEXTURE_CONTENT,
44 TILED_CONTENT, 44 TILED_CONTENT,
45 YUV_VIDEO_CONTENT, 45 YUV_VIDEO_CONTENT,
46 MATERIAL_LAST = YUV_VIDEO_CONTENT
46 }; 47 };
47 48
48 virtual ~DrawQuad(); 49 virtual ~DrawQuad();
49 50
50 scoped_ptr<DrawQuad> Copy( 51 scoped_ptr<DrawQuad> Copy(
51 const SharedQuadState* copied_shared_quad_state) const; 52 const SharedQuadState* copied_shared_quad_state) const;
52 53
53 // TODO(danakj): Chromify or remove these SharedQuadState helpers. 54 // TODO(danakj): Chromify or remove these SharedQuadState helpers.
54 const gfx::Transform& quadTransform() const { 55 const gfx::Transform& quadTransform() const {
55 return shared_quad_state->content_to_target_transform; 56 return shared_quad_state->content_to_target_transform;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 const gfx::Rect& rect, 136 const gfx::Rect& rect,
136 const gfx::Rect& opaque_rect, 137 const gfx::Rect& opaque_rect,
137 const gfx::Rect& visible_rect, 138 const gfx::Rect& visible_rect,
138 bool needs_blending); 139 bool needs_blending);
139 virtual void ExtendValue(base::DictionaryValue* value) const = 0; 140 virtual void ExtendValue(base::DictionaryValue* value) const = 0;
140 }; 141 };
141 142
142 } // namespace cc 143 } // namespace cc
143 144
144 #endif // CC_QUADS_DRAW_QUAD_H_ 145 #endif // CC_QUADS_DRAW_QUAD_H_
OLDNEW
« no previous file with comments | « cc/output/filter_operation.h ('k') | cc/quads/io_surface_draw_quad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698