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

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

Issue 1142343008: cc: Rework overlays to not use the ResourceProvider and pass texture size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
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_TEXTURE_DRAW_QUAD_H_ 5 #ifndef CC_QUADS_TEXTURE_DRAW_QUAD_H_
6 #define CC_QUADS_TEXTURE_DRAW_QUAD_H_ 6 #define CC_QUADS_TEXTURE_DRAW_QUAD_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/quads/draw_quad.h" 10 #include "cc/quads/draw_quad.h"
(...skipping 17 matching lines...) Expand all
28 const float vertex_opacity[4], 28 const float vertex_opacity[4],
29 bool y_flipped, 29 bool y_flipped,
30 bool nearest_neighbor); 30 bool nearest_neighbor);
31 31
32 void SetAll(const SharedQuadState* shared_quad_state, 32 void SetAll(const SharedQuadState* shared_quad_state,
33 const gfx::Rect& rect, 33 const gfx::Rect& rect,
34 const gfx::Rect& opaque_rect, 34 const gfx::Rect& opaque_rect,
35 const gfx::Rect& visible_rect, 35 const gfx::Rect& visible_rect,
36 bool needs_blending, 36 bool needs_blending,
37 unsigned resource_id, 37 unsigned resource_id,
38 gfx::Size resource_size_in_pixels,
39 bool allow_overlay,
38 bool premultiplied_alpha, 40 bool premultiplied_alpha,
39 const gfx::PointF& uv_top_left, 41 const gfx::PointF& uv_top_left,
40 const gfx::PointF& uv_bottom_right, 42 const gfx::PointF& uv_bottom_right,
41 SkColor background_color, 43 SkColor background_color,
42 const float vertex_opacity[4], 44 const float vertex_opacity[4],
43 bool y_flipped, 45 bool y_flipped,
44 bool nearest_neighbor); 46 bool nearest_neighbor);
45 47
46 unsigned resource_id; 48 unsigned resource_id;
49 gfx::Size resource_size_in_pixels;
50 bool allow_overlay;
47 bool premultiplied_alpha; 51 bool premultiplied_alpha;
48 gfx::PointF uv_top_left; 52 gfx::PointF uv_top_left;
49 gfx::PointF uv_bottom_right; 53 gfx::PointF uv_bottom_right;
50 SkColor background_color; 54 SkColor background_color;
51 float vertex_opacity[4]; 55 float vertex_opacity[4];
52 bool y_flipped; 56 bool y_flipped;
53 bool nearest_neighbor; 57 bool nearest_neighbor;
54 58
55 void IterateResources(const ResourceIteratorCallback& callback) override; 59 void IterateResources(const ResourceIteratorCallback& callback) override;
56 60
57 static const TextureDrawQuad* MaterialCast(const DrawQuad*); 61 static const TextureDrawQuad* MaterialCast(const DrawQuad*);
58 62
59 private: 63 private:
60 void ExtendValue(base::trace_event::TracedValue* value) const override; 64 void ExtendValue(base::trace_event::TracedValue* value) const override;
61 }; 65 };
62 66
63 } // namespace cc 67 } // namespace cc
64 68
65 #endif // CC_QUADS_TEXTURE_DRAW_QUAD_H_ 69 #endif // CC_QUADS_TEXTURE_DRAW_QUAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698