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

Side by Side Diff: cc/layers/layer_impl.cc

Issue 23530026: CSS Blending: Mix-blend-mode shouldn't force the creation of a composited layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Completely remove blending compositing flag Created 7 years, 3 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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/layer_impl.h" 5 #include "cc/layers/layer_impl.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "cc/animation/animation_registrar.h" 9 #include "cc/animation/animation_registrar.h"
10 #include "cc/animation/scrollbar_animation_controller.h" 10 #include "cc/animation/scrollbar_animation_controller.h"
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 1179
1180 if (reasons & kCompositingReasonPositionFixed) 1180 if (reasons & kCompositingReasonPositionFixed)
1181 reason_list->AppendString("Is fixed position"); 1181 reason_list->AppendString("Is fixed position");
1182 1182
1183 if (reasons & kCompositingReasonPositionSticky) 1183 if (reasons & kCompositingReasonPositionSticky)
1184 reason_list->AppendString("Is sticky position"); 1184 reason_list->AppendString("Is sticky position");
1185 1185
1186 if (reasons & kCompositingReasonOverflowScrollingTouch) 1186 if (reasons & kCompositingReasonOverflowScrollingTouch)
1187 reason_list->AppendString("Is a scrollable overflow element"); 1187 reason_list->AppendString("Is a scrollable overflow element");
1188 1188
1189 if (reasons & kCompositingReasonBlending)
1190 reason_list->AppendString("Has a blend mode");
1191
1192 if (reasons & kCompositingReasonAssumedOverlap) 1189 if (reasons & kCompositingReasonAssumedOverlap)
1193 reason_list->AppendString("Might overlap a composited animation"); 1190 reason_list->AppendString("Might overlap a composited animation");
1194 1191
1195 if (reasons & kCompositingReasonOverlap) 1192 if (reasons & kCompositingReasonOverlap)
1196 reason_list->AppendString("Overlaps other composited content"); 1193 reason_list->AppendString("Overlaps other composited content");
1197 1194
1198 if (reasons & kCompositingReasonNegativeZIndexChildren) { 1195 if (reasons & kCompositingReasonNegativeZIndexChildren) {
1199 reason_list->AppendString("Might overlap negative z-index " 1196 reason_list->AppendString("Might overlap negative z-index "
1200 "composited content"); 1197 "composited content");
1201 } 1198 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 1303
1307 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; } 1304 size_t LayerImpl::GPUMemoryUsageInBytes() const { return 0; }
1308 1305
1309 scoped_ptr<base::Value> LayerImpl::AsValue() const { 1306 scoped_ptr<base::Value> LayerImpl::AsValue() const {
1310 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue()); 1307 scoped_ptr<base::DictionaryValue> state(new base::DictionaryValue());
1311 AsValueInto(state.get()); 1308 AsValueInto(state.get());
1312 return state.PassAs<base::Value>(); 1309 return state.PassAs<base::Value>();
1313 } 1310 }
1314 1311
1315 } // namespace cc 1312 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/compositing_reasons.h ('k') | webkit/renderer/compositor_bindings/web_compositing_reasons.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698