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

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

Issue 13863015: Add flag for drawing layers to screen with Ganesh (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Base files missing. Created 7 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_PICTURE_DRAW_QUAD_H_ 5 #ifndef CC_QUADS_PICTURE_DRAW_QUAD_H_
6 #define CC_QUADS_PICTURE_DRAW_QUAD_H_ 6 #define CC_QUADS_PICTURE_DRAW_QUAD_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 12 matching lines...) Expand all
23 virtual ~PictureDrawQuad(); 23 virtual ~PictureDrawQuad();
24 24
25 void SetNew(const SharedQuadState* shared_quad_state, 25 void SetNew(const SharedQuadState* shared_quad_state,
26 gfx::Rect rect, 26 gfx::Rect rect,
27 gfx::Rect opaque_rect, 27 gfx::Rect opaque_rect,
28 const gfx::RectF& tex_coord_rect, 28 const gfx::RectF& tex_coord_rect,
29 gfx::Size texture_size, 29 gfx::Size texture_size,
30 bool swizzle_contents, 30 bool swizzle_contents,
31 gfx::Rect content_rect, 31 gfx::Rect content_rect,
32 float contents_scale, 32 float contents_scale,
33 bool draw_direct_to_backbuffer,
danakj 2013/05/16 15:17:55 nit: can_draw_directly_to_backbuffer (like the dra
enne (OOO) 2013/05/16 20:34:11 Done.
33 scoped_refptr<PicturePileImpl> picture_pile); 34 scoped_refptr<PicturePileImpl> picture_pile);
34 35
35 void SetAll(const SharedQuadState* shared_quad_state, 36 void SetAll(const SharedQuadState* shared_quad_state,
36 gfx::Rect rect, 37 gfx::Rect rect,
37 gfx::Rect opaque_rect, 38 gfx::Rect opaque_rect,
38 gfx::Rect visible_rect, 39 gfx::Rect visible_rect,
39 bool needs_blending, 40 bool needs_blending,
40 const gfx::RectF& tex_coord_rect, 41 const gfx::RectF& tex_coord_rect,
41 gfx::Size texture_size, 42 gfx::Size texture_size,
42 bool swizzle_contents, 43 bool swizzle_contents,
43 gfx::Rect content_rect, 44 gfx::Rect content_rect,
44 float contents_scale, 45 float contents_scale,
46 bool draw_direct_to_backbuffer,
45 scoped_refptr<PicturePileImpl> picture_pile); 47 scoped_refptr<PicturePileImpl> picture_pile);
46 48
47 gfx::Rect content_rect; 49 gfx::Rect content_rect;
48 float contents_scale; 50 float contents_scale;
51 bool draw_direct_to_backbuffer;
49 scoped_refptr<PicturePileImpl> picture_pile; 52 scoped_refptr<PicturePileImpl> picture_pile;
50 53
51 virtual void IterateResources(const ResourceIteratorCallback& callback) 54 virtual void IterateResources(const ResourceIteratorCallback& callback)
52 OVERRIDE; 55 OVERRIDE;
53 56
54 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad); 57 static const PictureDrawQuad* MaterialCast(const DrawQuad* quad);
55 58
56 private: 59 private:
57 PictureDrawQuad(); 60 PictureDrawQuad();
58 }; 61 };
59 62
60 } // namespace cc 63 } // namespace cc
61 64
62 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_ 65 #endif // CC_QUADS_PICTURE_DRAW_QUAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698