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

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

Issue 11227031: Support setAutomaticallyComputeRasterScale() on the WebLayer API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rasterScale Created 8 years, 1 month 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 void WebLayerImpl::setTransform(const WebTransformationMatrix& matrix) 225 void WebLayerImpl::setTransform(const WebTransformationMatrix& matrix)
226 { 226 {
227 m_layer->setTransform(matrix); 227 m_layer->setTransform(matrix);
228 } 228 }
229 229
230 SkMatrix44 WebLayerImpl::transform() const 230 SkMatrix44 WebLayerImpl::transform() const
231 { 231 {
232 return skMatrix44FromTransformationMatrix(m_layer->transform()); 232 return skMatrix44FromTransformationMatrix(m_layer->transform());
233 } 233 }
234 234
235 void WebLayerImpl::setAutomaticallyComputeRasterScale(bool)
236 {
237 }
238
235 void WebLayerImpl::setDrawsContent(bool drawsContent) 239 void WebLayerImpl::setDrawsContent(bool drawsContent)
236 { 240 {
237 m_layer->setIsDrawable(drawsContent); 241 m_layer->setIsDrawable(drawsContent);
238 } 242 }
239 243
240 bool WebLayerImpl::drawsContent() const 244 bool WebLayerImpl::drawsContent() const
241 { 245 {
242 return m_layer->drawsContent(); 246 return m_layer->drawsContent();
243 } 247 }
244 248
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 { 436 {
433 m_layer->setLayerScrollClient(scrollClient); 437 m_layer->setLayerScrollClient(scrollClient);
434 } 438 }
435 439
436 LayerChromium* WebLayerImpl::layer() const 440 LayerChromium* WebLayerImpl::layer() const
437 { 441 {
438 return m_layer.get(); 442 return m_layer.get();
439 } 443 }
440 444
441 } // namespace WebKit 445 } // 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