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

Side by Side Diff: cc/CCTiledLayerImpl.cpp

Issue 11035020: Renamed LayerChromium::opaque to LayerChromium::contentsOpaque. Having both opaque and opacity on t… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
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 6
7 #if USE(ACCELERATED_COMPOSITING) 7 #if USE(ACCELERATED_COMPOSITING)
8 8
9 #include "CCTiledLayerImpl.h" 9 #include "CCTiledLayerImpl.h"
10 10
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 if (!tile) 195 if (!tile)
196 tile = createTile(i, j); 196 tile = createTile(i, j);
197 tile->setResourceId(resourceId); 197 tile->setResourceId(resourceId);
198 tile->setOpaqueRect(opaqueRect); 198 tile->setOpaqueRect(opaqueRect);
199 } 199 }
200 200
201 Region CCTiledLayerImpl::visibleContentOpaqueRegion() const 201 Region CCTiledLayerImpl::visibleContentOpaqueRegion() const
202 { 202 {
203 if (m_skipsDraw) 203 if (m_skipsDraw)
204 return Region(); 204 return Region();
205 if (opaque()) 205 if (contentsOpaque())
206 return visibleContentRect(); 206 return visibleContentRect();
207 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); 207 return m_tiler->opaqueRegionInContentRect(visibleContentRect());
208 } 208 }
209 209
210 void CCTiledLayerImpl::didLoseContext() 210 void CCTiledLayerImpl::didLoseContext()
211 { 211 {
212 m_tiler->reset(); 212 m_tiler->reset();
213 } 213 }
214 214
215 const char* CCTiledLayerImpl::layerTypeAsString() const 215 const char* CCTiledLayerImpl::layerTypeAsString() const
216 { 216 {
217 return "ContentLayer"; 217 return "ContentLayer";
218 } 218 }
219 219
220 } // namespace cc 220 } // namespace cc
221 221
222 #endif // USE(ACCELERATED_COMPOSITING) 222 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698