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

Side by Side Diff: cc/output/overlay_candidate.h

Issue 2683763003: cc: make resource keep video buffer format for hardware overlay.
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_OUTPUT_OVERLAY_CANDIDATE_H_ 5 #ifndef CC_OUTPUT_OVERLAY_CANDIDATE_H_
6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_ 6 #define CC_OUTPUT_OVERLAY_CANDIDATE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 #include "cc/base/resource_id.h" 12 #include "cc/base/resource_id.h"
13 #include "cc/quads/render_pass.h" 13 #include "cc/quads/render_pass.h"
14 #include "cc/resources/resource_format.h" 14 #include "ui/gfx/buffer_types.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 #include "ui/gfx/geometry/rect_f.h" 16 #include "ui/gfx/geometry/rect_f.h"
17 #include "ui/gfx/geometry/size.h" 17 #include "ui/gfx/geometry/size.h"
18 #include "ui/gfx/overlay_transform.h" 18 #include "ui/gfx/overlay_transform.h"
19 #include "ui/gfx/transform.h" 19 #include "ui/gfx/transform.h"
20 20
21 namespace gfx { 21 namespace gfx {
22 class Rect; 22 class Rect;
23 } 23 }
24 24
(...skipping 21 matching lines...) Expand all
46 QuadList::ConstIterator quad_list_begin, 46 QuadList::ConstIterator quad_list_begin,
47 QuadList::ConstIterator quad_list_end); 47 QuadList::ConstIterator quad_list_end);
48 48
49 OverlayCandidate(); 49 OverlayCandidate();
50 OverlayCandidate(const OverlayCandidate& other); 50 OverlayCandidate(const OverlayCandidate& other);
51 ~OverlayCandidate(); 51 ~OverlayCandidate();
52 52
53 // Transformation to apply to layer during composition. 53 // Transformation to apply to layer during composition.
54 gfx::OverlayTransform transform; 54 gfx::OverlayTransform transform;
55 // Format of the buffer to composite. 55 // Format of the buffer to composite.
56 ResourceFormat format; 56 gfx::BufferFormat format;
57 // Size of the resource, in pixels. 57 // Size of the resource, in pixels.
58 gfx::Size resource_size_in_pixels; 58 gfx::Size resource_size_in_pixels;
59 // Rect on the display to position the overlay to. Implementer must convert 59 // Rect on the display to position the overlay to. Implementer must convert
60 // to integer coordinates if setting |overlay_handled| to true. 60 // to integer coordinates if setting |overlay_handled| to true.
61 gfx::RectF display_rect; 61 gfx::RectF display_rect;
62 // Crop within the buffer to be placed inside |display_rect|. 62 // Crop within the buffer to be placed inside |display_rect|.
63 gfx::RectF uv_rect; 63 gfx::RectF uv_rect;
64 // Quad geometry rect after applying the quad_transform(). 64 // Quad geometry rect after applying the quad_transform().
65 gfx::Rect quad_rect_in_target_space; 65 gfx::Rect quad_rect_in_target_space;
66 // Clip rect in the target content space after composition. 66 // Clip rect in the target content space after composition.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // overlay, if one backs them with a SurfaceView. 122 // overlay, if one backs them with a SurfaceView.
123 PromotionHintInfoMap promotion_hint_info_map_; 123 PromotionHintInfoMap promotion_hint_info_map_;
124 124
125 // Helper to insert |candidate| into |promotion_hint_info_|. 125 // Helper to insert |candidate| into |promotion_hint_info_|.
126 void AddPromotionHint(const OverlayCandidate& candidate); 126 void AddPromotionHint(const OverlayCandidate& candidate);
127 }; 127 };
128 128
129 } // namespace cc 129 } // namespace cc
130 130
131 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_ 131 #endif // CC_OUTPUT_OVERLAY_CANDIDATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698