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

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

Issue 11659004: Add support for tagging layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: exposing enum in cc. Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « webkit/compositor_bindings/web_layer_impl.h ('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 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 "web_layer_impl.h" 5 #include "web_layer_impl.h"
6 6
7 #include "SkMatrix44.h" 7 #include "SkMatrix44.h"
8 #ifdef LOG 8 #ifdef LOG
9 #undef LOG 9 #undef LOG
10 #endif 10 #endif
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 bool WebLayerImpl::fixedToContainerLayer() const 411 bool WebLayerImpl::fixedToContainerLayer() const
412 { 412 {
413 return m_layer->fixedToContainerLayer(); 413 return m_layer->fixedToContainerLayer();
414 } 414 }
415 415
416 void WebLayerImpl::setScrollClient(WebLayerScrollClient* scrollClient) 416 void WebLayerImpl::setScrollClient(WebLayerScrollClient* scrollClient)
417 { 417 {
418 m_layer->setLayerScrollClient(scrollClient); 418 m_layer->setLayerScrollClient(scrollClient);
419 } 419 }
420 420
421 void WebLayerImpl::setTags(unsigned tags)
422 {
423 m_layer->setTags(tags);
424 }
425
426 unsigned WebLayerImpl::getTags() const
427 {
428 return m_layer->getTags();
429 }
430
431 void WebLayerImpl::addTag(WebLayer::Tag tag)
432 {
433 m_layer->addTag(static_cast<cc::Layer::Tag>(tag));
434 }
435
436 bool WebLayerImpl::getTag(WebLayer::Tag tag) const
437 {
438 return m_layer->getTag(static_cast<cc::Layer::Tag>(tag));
439 }
440
421 Layer* WebLayerImpl::layer() const 441 Layer* WebLayerImpl::layer() const
422 { 442 {
423 return m_layer.get(); 443 return m_layer.get();
424 } 444 }
425 445
426 } // namespace WebKit 446 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/web_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698