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

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

Issue 11175009: Implement SkImageFilter support in the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to ToT (past the Great Renaming) Created 8 years, 2 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 | 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 "config.h" 5 #include "config.h"
6 #include "web_layer_impl.h" 6 #include "web_layer_impl.h"
7 7
8 #include "SkMatrix44.h" 8 #include "SkMatrix44.h"
9 #ifdef LOG 9 #ifdef LOG
10 #undef LOG 10 #undef LOG
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 void WebLayerImpl::setFilters(const WebFilterOperations& filters) 265 void WebLayerImpl::setFilters(const WebFilterOperations& filters)
266 { 266 {
267 m_layer->setFilters(filters); 267 m_layer->setFilters(filters);
268 } 268 }
269 269
270 void WebLayerImpl::setBackgroundFilters(const WebFilterOperations& filters) 270 void WebLayerImpl::setBackgroundFilters(const WebFilterOperations& filters)
271 { 271 {
272 m_layer->setBackgroundFilters(filters); 272 m_layer->setBackgroundFilters(filters);
273 } 273 }
274 274
275 void WebLayerImpl::setFilter(SkImageFilter* filter)
276 {
277 m_layer->setFilter(filter);
278 }
279
275 void WebLayerImpl::setDebugBorderColor(const WebColor& color) 280 void WebLayerImpl::setDebugBorderColor(const WebColor& color)
276 { 281 {
277 m_layer->setDebugBorderColor(color); 282 m_layer->setDebugBorderColor(color);
278 } 283 }
279 284
280 void WebLayerImpl::setDebugBorderWidth(float width) 285 void WebLayerImpl::setDebugBorderWidth(float width)
281 { 286 {
282 m_layer->setDebugBorderWidth(width); 287 m_layer->setDebugBorderWidth(width);
283 } 288 }
284 289
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 { 437 {
433 m_layer->setLayerScrollClient(scrollClient); 438 m_layer->setLayerScrollClient(scrollClient);
434 } 439 }
435 440
436 Layer* WebLayerImpl::layer() const 441 Layer* WebLayerImpl::layer() const
437 { 442 {
438 return m_layer.get(); 443 return m_layer.get();
439 } 444 }
440 445
441 } // 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