OLD | NEW |
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 #include "cc/layers/heads_up_display_layer_impl.h" | 5 #include "cc/layers/heads_up_display_layer_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 bool flipped = false; | 123 bool flipped = false; |
124 scoped_ptr<TextureDrawQuad> quad = TextureDrawQuad::Create(); | 124 scoped_ptr<TextureDrawQuad> quad = TextureDrawQuad::Create(); |
125 quad->SetNew(shared_quad_state, | 125 quad->SetNew(shared_quad_state, |
126 quad_rect, | 126 quad_rect, |
127 opaque_rect, | 127 opaque_rect, |
128 hud_resource_->id(), | 128 hud_resource_->id(), |
129 premultiplied_alpha, | 129 premultiplied_alpha, |
130 uv_top_left, | 130 uv_top_left, |
131 uv_bottom_right, | 131 uv_bottom_right, |
132 vertex_opacity, | 132 vertex_opacity, |
| 133 SK_ColorTRANSPARENT, |
133 flipped); | 134 flipped); |
134 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); | 135 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); |
135 } | 136 } |
136 | 137 |
137 void HeadsUpDisplayLayerImpl::UpdateHudTexture( | 138 void HeadsUpDisplayLayerImpl::UpdateHudTexture( |
138 ResourceProvider* resource_provider) { | 139 ResourceProvider* resource_provider) { |
139 if (!hud_resource_->id()) | 140 if (!hud_resource_->id()) |
140 return; | 141 return; |
141 | 142 |
142 SkISize canvas_size; | 143 SkISize canvas_size; |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 } | 703 } |
703 | 704 |
704 canvas->restore(); | 705 canvas->restore(); |
705 } | 706 } |
706 | 707 |
707 const char* HeadsUpDisplayLayerImpl::LayerTypeAsString() const { | 708 const char* HeadsUpDisplayLayerImpl::LayerTypeAsString() const { |
708 return "cc::HeadsUpDisplayLayerImpl"; | 709 return "cc::HeadsUpDisplayLayerImpl"; |
709 } | 710 } |
710 | 711 |
711 } // namespace cc | 712 } // namespace cc |
OLD | NEW |