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

Side by Side Diff: webkit/renderer/compositor_bindings/web_layer_impl.cc

Issue 332873005: Rendering context information added to SharedQuadState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cc_messages_unittest now builds with new SharedQuadState::SetAll Created 6 years, 6 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 "webkit/renderer/compositor_bindings/web_layer_impl.h" 5 #include "webkit/renderer/compositor_bindings/web_layer_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event_impl.h" 8 #include "base/debug/trace_event_impl.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 layer_->SetIsDrawable(draws_content); 181 layer_->SetIsDrawable(draws_content);
182 } 182 }
183 183
184 bool WebLayerImpl::drawsContent() const { return layer_->DrawsContent(); } 184 bool WebLayerImpl::drawsContent() const { return layer_->DrawsContent(); }
185 185
186 void WebLayerImpl::setShouldFlattenTransform(bool flatten) { 186 void WebLayerImpl::setShouldFlattenTransform(bool flatten) {
187 layer_->SetShouldFlattenTransform(flatten); 187 layer_->SetShouldFlattenTransform(flatten);
188 } 188 }
189 189
190 void WebLayerImpl::setRenderingContext(int context) { 190 void WebLayerImpl::setRenderingContext(int context) {
191 layer_->SetIs3dSorted(context != 0); 191 layer_->Set3dSortingContextId(context);
192 } 192 }
193 193
194 void WebLayerImpl::setUseParentBackfaceVisibility( 194 void WebLayerImpl::setUseParentBackfaceVisibility(
195 bool use_parent_backface_visibility) { 195 bool use_parent_backface_visibility) {
196 layer_->set_use_parent_backface_visibility(use_parent_backface_visibility); 196 layer_->set_use_parent_backface_visibility(use_parent_backface_visibility);
197 } 197 }
198 198
199 void WebLayerImpl::setBackgroundColor(WebColor color) { 199 void WebLayerImpl::setBackgroundColor(WebColor color) {
200 layer_->SetBackgroundColor(color); 200 layer_->SetBackgroundColor(color);
201 } 201 }
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 void WebLayerImpl::setClipParent(blink::WebLayer* parent) { 449 void WebLayerImpl::setClipParent(blink::WebLayer* parent) {
450 cc::Layer* clip_parent = NULL; 450 cc::Layer* clip_parent = NULL;
451 if (parent) 451 if (parent)
452 clip_parent = static_cast<WebLayerImpl*>(parent)->layer(); 452 clip_parent = static_cast<WebLayerImpl*>(parent)->layer();
453 layer_->SetClipParent(clip_parent); 453 layer_->SetClipParent(clip_parent);
454 } 454 }
455 455
456 Layer* WebLayerImpl::layer() const { return layer_.get(); } 456 Layer* WebLayerImpl::layer() const { return layer_.get(); }
457 457
458 } // namespace webkit 458 } // namespace webkit
OLDNEW
« content/common/cc_messages_unittest.cc ('K') | « content/common/cc_messages_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698