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

Side by Side Diff: content/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: layer_tree_json_parser fix 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
« no previous file with comments | « content/common/cc_messages_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/renderer/compositor_bindings/web_layer_impl.h" 5 #include "content/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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 bool WebLayerImpl::drawsContent() const { 206 bool WebLayerImpl::drawsContent() const {
207 return layer_->DrawsContent(); 207 return layer_->DrawsContent();
208 } 208 }
209 209
210 void WebLayerImpl::setShouldFlattenTransform(bool flatten) { 210 void WebLayerImpl::setShouldFlattenTransform(bool flatten) {
211 layer_->SetShouldFlattenTransform(flatten); 211 layer_->SetShouldFlattenTransform(flatten);
212 } 212 }
213 213
214 void WebLayerImpl::setRenderingContext(int context) { 214 void WebLayerImpl::setRenderingContext(int context) {
215 layer_->SetIs3dSorted(context != 0); 215 layer_->Set3dSortingContextId(context);
216 } 216 }
217 217
218 void WebLayerImpl::setUseParentBackfaceVisibility( 218 void WebLayerImpl::setUseParentBackfaceVisibility(
219 bool use_parent_backface_visibility) { 219 bool use_parent_backface_visibility) {
220 layer_->set_use_parent_backface_visibility(use_parent_backface_visibility); 220 layer_->set_use_parent_backface_visibility(use_parent_backface_visibility);
221 } 221 }
222 222
223 void WebLayerImpl::setBackgroundColor(WebColor color) { 223 void WebLayerImpl::setBackgroundColor(WebColor color) {
224 layer_->SetBackgroundColor(color); 224 layer_->SetBackgroundColor(color);
225 } 225 }
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 clip_parent = static_cast<WebLayerImpl*>(parent)->layer(); 480 clip_parent = static_cast<WebLayerImpl*>(parent)->layer();
481 layer_->SetClipParent(clip_parent); 481 layer_->SetClipParent(clip_parent);
482 } 482 }
483 483
484 Layer* WebLayerImpl::layer() const { 484 Layer* WebLayerImpl::layer() const {
485 return layer_.get(); 485 return layer_.get();
486 } 486 }
487 487
488 } // namespace content 488 } // namespace content
489 489
OLDNEW
« no previous file with comments | « content/common/cc_messages_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698