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

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

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed compile error 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
« cc/tiled_layer.cc ('K') | « cc/tiled_layer.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 "config.h" 5 #include "config.h"
6 #include "web_content_layer_impl.h" 6 #include "web_content_layer_impl.h"
7 7
8 #include "SkMatrix44.h" 8 #include "SkMatrix44.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "cc/content_layer.h" 10 #include "cc/content_layer.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return m_layer->layer()->boundsContainPageScale(); 68 return m_layer->layer()->boundsContainPageScale();
69 } 69 }
70 70
71 void WebContentLayerImpl::setAutomaticallyComputeRasterScale(bool automatic) 71 void WebContentLayerImpl::setAutomaticallyComputeRasterScale(bool automatic)
72 { 72 {
73 m_layer->layer()->setAutomaticallyComputeRasterScale(automatic); 73 m_layer->layer()->setAutomaticallyComputeRasterScale(automatic);
74 } 74 }
75 75
76 void WebContentLayerImpl::setUseLCDText(bool enable) 76 void WebContentLayerImpl::setUseLCDText(bool enable)
77 { 77 {
78 m_layer->layer()->setUseLCDText(enable); 78 m_layer->layer()->setCanUseLCDText(enable);
79 } 79 }
80 80
81 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable) 81 void WebContentLayerImpl::setDrawCheckerboardForMissingTiles(bool enable)
82 { 82 {
83 m_layer->layer()->setDrawCheckerboardForMissingTiles(enable); 83 m_layer->layer()->setDrawCheckerboardForMissingTiles(enable);
84 } 84 }
85 85
86 86
87 void WebContentLayerImpl::paintContents(SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF& opaque) 87 void WebContentLayerImpl::paintContents(SkCanvas* canvas, const gfx::Rect& clip, gfx::RectF& opaque)
88 { 88 {
89 if (!m_client) 89 if (!m_client)
90 return; 90 return;
91 WebFloatRect webOpaque; 91 WebFloatRect webOpaque;
92 m_client->paintContents(canvas, 92 m_client->paintContents(canvas,
93 clip, 93 clip,
94 #if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT 94 #if WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT
95 m_layer->layer()->useLCDText(), 95 m_layer->layer()->canUseLCDText(),
96 #endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT 96 #endif // WEBCONTENTLAYERCLIENT_HAS_CANPAINTLCDTEXT
97 webOpaque); 97 webOpaque);
98 opaque = webOpaque; 98 opaque = webOpaque;
99 } 99 }
100 100
101 } // namespace WebKit 101 } // namespace WebKit
OLDNEW
« cc/tiled_layer.cc ('K') | « cc/tiled_layer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698