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

Side by Side Diff: cc/tiled_layer_impl.cc

Issue 11439026: Revert 171403 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « cc/tiled_layer_impl.h ('k') | cc/tiled_layer_unittest.cc » ('j') | 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 "cc/tiled_layer_impl.h" 5 #include "cc/tiled_layer_impl.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "cc/append_quads_data.h" 9 #include "cc/append_quads_data.h"
10 #include "cc/checkerboard_draw_quad.h" 10 #include "cc/checkerboard_draw_quad.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 Region TiledLayerImpl::visibleContentOpaqueRegion() const 230 Region TiledLayerImpl::visibleContentOpaqueRegion() const
231 { 231 {
232 if (m_skipsDraw) 232 if (m_skipsDraw)
233 return Region(); 233 return Region();
234 if (contentsOpaque()) 234 if (contentsOpaque())
235 return visibleContentRect(); 235 return visibleContentRect();
236 return m_tiler->opaqueRegionInContentRect(visibleContentRect()); 236 return m_tiler->opaqueRegionInContentRect(visibleContentRect());
237 } 237 }
238 238
239 void TiledLayerImpl::didLoseOutputSurface() 239 void TiledLayerImpl::didLoseContext()
240 { 240 {
241 m_tiler->reset(); 241 m_tiler->reset();
242 } 242 }
243 243
244 const char* TiledLayerImpl::layerTypeAsString() const 244 const char* TiledLayerImpl::layerTypeAsString() const
245 { 245 {
246 return "ContentLayer"; 246 return "ContentLayer";
247 } 247 }
248 248
249 } // namespace cc 249 } // namespace cc
OLDNEW
« no previous file with comments | « cc/tiled_layer_impl.h ('k') | cc/tiled_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698