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

Side by Side Diff: webkit/compositor_bindings/WebContentLayerImpl.cpp

Issue 10917153: Update cc snapshot to r127918 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
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 "WebContentLayerImpl.h" 6 #include "WebContentLayerImpl.h"
7 7
8 #include "ContentLayerChromium.h" 8 #include "ContentLayerChromium.h"
9 #include "SkMatrix44.h" 9 #include "SkMatrix44.h"
10 #include <public/WebContentLayerClient.h> 10 #include <public/WebContentLayerClient.h>
(...skipping 26 matching lines...) Expand all
37 WebLayer* WebContentLayerImpl::layer() 37 WebLayer* WebContentLayerImpl::layer()
38 { 38 {
39 return m_layer.get(); 39 return m_layer.get();
40 } 40 }
41 41
42 void WebContentLayerImpl::setDoubleSided(bool doubleSided) 42 void WebContentLayerImpl::setDoubleSided(bool doubleSided)
43 { 43 {
44 m_layer->layer()->setDoubleSided(doubleSided); 44 m_layer->layer()->setDoubleSided(doubleSided);
45 } 45 }
46 46
47 void WebContentLayerImpl::setContentsScale(float scale) 47 void WebContentLayerImpl::setBoundsContainPageScale(bool boundsContainPageScale)
48 { 48 {
49 m_layer->layer()->setContentsScale(scale); 49 return m_layer->layer()->setBoundsContainPageScale(boundsContainPageScale);
50 }
51
52 bool WebContentLayerImpl::boundsContainPageScale() const
53 {
54 return m_layer->layer()->boundsContainPageScale();
50 } 55 }
51 56
52 void WebContentLayerImpl::setUseLCDText(bool enable) 57 void WebContentLayerImpl::setUseLCDText(bool enable)
53 { 58 {
54 m_layer->layer()->setUseLCDText(enable); 59 m_layer->layer()->setUseLCDText(enable);
55 } 60 }
56 61
57 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) 62 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable)
58 { 63 {
59 m_layer->layer()->setDrawCheckerboardForMissingTiles(enable); 64 m_layer->layer()->setDrawCheckerboardForMissingTiles(enable);
60 } 65 }
61 66
62 67
63 void WebContentLayerImpl::paintContents(SkCanvas* canvas, const IntRect& clip, F loatRect& opaque) 68 void WebContentLayerImpl::paintContents(SkCanvas* canvas, const IntRect& clip, F loatRect& opaque)
64 { 69 {
65 if (!m_client) 70 if (!m_client)
66 return; 71 return;
67 WebFloatRect webOpaque; 72 WebFloatRect webOpaque;
68 m_client->paintContents(canvas, WebRect(clip), webOpaque); 73 m_client->paintContents(canvas, WebRect(clip), webOpaque);
69 opaque = webOpaque; 74 opaque = webOpaque;
70 } 75 }
71 76
72 } // namespace WebKit 77 } // namespace WebKit
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/WebContentLayerImpl.h ('k') | webkit/compositor_bindings/WebLayerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698