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

Side by Side Diff: cc/output/gl_renderer.cc

Issue 2469893003: [Merge to 2883] mac: Fix bug where opacity is applied twice on RenderPassDrawQuads. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | content/test/data/gpu/filter_effects.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | content/test/data/gpu/filter_effects.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698