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

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

Issue 11418217: Add skia::RefPtr class to wrap ref counted classes from Skia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit 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
« cc/skia_refptr.h ('K') | « cc/software_renderer.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 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 m_layer->setFilters(filters); 234 m_layer->setFilters(filters);
235 } 235 }
236 236
237 void WebLayerImpl::setBackgroundFilters(const WebFilterOperations& filters) 237 void WebLayerImpl::setBackgroundFilters(const WebFilterOperations& filters)
238 { 238 {
239 m_layer->setBackgroundFilters(filters); 239 m_layer->setBackgroundFilters(filters);
240 } 240 }
241 241
242 void WebLayerImpl::setFilter(SkImageFilter* filter) 242 void WebLayerImpl::setFilter(SkImageFilter* filter)
243 { 243 {
244 m_layer->setFilter(filter); 244 m_layer->setFilter(cc::SkiaRefPtr<SkImageFilter>::Adopt(filter));
245 } 245 }
246 246
247 void WebLayerImpl::setDebugName(WebString name) 247 void WebLayerImpl::setDebugName(WebString name)
248 { 248 {
249 m_layer->setDebugName(UTF16ToASCII(string16(name.data(), name.length()))); 249 m_layer->setDebugName(UTF16ToASCII(string16(name.data(), name.length())));
250 } 250 }
251 251
252 void WebLayerImpl::setAnimationDelegate(WebAnimationDelegate* delegate) 252 void WebLayerImpl::setAnimationDelegate(WebAnimationDelegate* delegate)
253 { 253 {
254 m_layer->setLayerAnimationDelegate(delegate); 254 m_layer->setLayerAnimationDelegate(delegate);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 { 421 {
422 m_layer->setLayerScrollClient(scrollClient); 422 m_layer->setLayerScrollClient(scrollClient);
423 } 423 }
424 424
425 Layer* WebLayerImpl::layer() const 425 Layer* WebLayerImpl::layer() const
426 { 426 {
427 return m_layer.get(); 427 return m_layer.get();
428 } 428 }
429 429
430 } // namespace WebKit 430 } // namespace WebKit
OLDNEW
« cc/skia_refptr.h ('K') | « cc/software_renderer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698