| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/output/gl_renderer.h" | 5 #include "cc/output/gl_renderer.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 4021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4032 GLfloat clip_rect[4] = {ca_layer_overlay->shared_state->clip_rect.x(), | 4032 GLfloat clip_rect[4] = {ca_layer_overlay->shared_state->clip_rect.x(), |
| 4033 ca_layer_overlay->shared_state->clip_rect.y(), | 4033 ca_layer_overlay->shared_state->clip_rect.y(), |
| 4034 ca_layer_overlay->shared_state->clip_rect.width(), | 4034 ca_layer_overlay->shared_state->clip_rect.width(), |
| 4035 ca_layer_overlay->shared_state->clip_rect.height()}; | 4035 ca_layer_overlay->shared_state->clip_rect.height()}; |
| 4036 GLint sorting_context_id = ca_layer_overlay->shared_state->sorting_context_id; | 4036 GLint sorting_context_id = ca_layer_overlay->shared_state->sorting_context_id; |
| 4037 SkMatrix44 transform = ca_layer_overlay->shared_state->transform; | 4037 SkMatrix44 transform = ca_layer_overlay->shared_state->transform; |
| 4038 GLfloat gl_transform[16]; | 4038 GLfloat gl_transform[16]; |
| 4039 transform.asColMajorf(gl_transform); | 4039 transform.asColMajorf(gl_transform); |
| 4040 unsigned filter = ca_layer_overlay->filter; | 4040 unsigned filter = ca_layer_overlay->filter; |
| 4041 | 4041 |
| 4042 gl_->ScheduleCALayerSharedStateCHROMIUM( | 4042 // The alpha has already been applied when copying the RPDQ to an IOSurface. |
| 4043 ca_layer_overlay->shared_state->opacity, is_clipped, clip_rect, | 4043 GLfloat alpha = 1; |
| 4044 sorting_context_id, gl_transform); | 4044 gl_->ScheduleCALayerSharedStateCHROMIUM(alpha, is_clipped, clip_rect, |
| 4045 sorting_context_id, gl_transform); |
| 4045 gl_->ScheduleCALayerCHROMIUM( | 4046 gl_->ScheduleCALayerCHROMIUM( |
| 4046 texture_id, contents_rect, ca_layer_overlay->background_color, | 4047 texture_id, contents_rect, ca_layer_overlay->background_color, |
| 4047 ca_layer_overlay->edge_aa_mask, bounds_rect, filter); | 4048 ca_layer_overlay->edge_aa_mask, bounds_rect, filter); |
| 4048 } | 4049 } |
| 4049 | 4050 |
| 4050 } // namespace cc | 4051 } // namespace cc |
| OLD | NEW |