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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/LayerChromium.h

Issue 7873004: Merge 94964 - [chromium] REGRESSION(94353): Compositor textures and resources leaked when tab clo... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/874/
Patch Set: Created 9 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 void setDrawTransform(const TransformationMatrix& matrix) { m_drawTransform = matrix; } 200 void setDrawTransform(const TransformationMatrix& matrix) { m_drawTransform = matrix; }
201 const TransformationMatrix& screenSpaceTransform() const { return m_screenSp aceTransform; } 201 const TransformationMatrix& screenSpaceTransform() const { return m_screenSp aceTransform; }
202 void setScreenSpaceTransform(const TransformationMatrix& matrix) { m_screenS paceTransform = matrix; } 202 void setScreenSpaceTransform(const TransformationMatrix& matrix) { m_screenS paceTransform = matrix; }
203 const IntRect& drawableContentRect() const { return m_drawableContentRect; } 203 const IntRect& drawableContentRect() const { return m_drawableContentRect; }
204 void setDrawableContentRect(const IntRect& rect) { m_drawableContentRect = r ect; } 204 void setDrawableContentRect(const IntRect& rect) { m_drawableContentRect = r ect; }
205 205
206 // Returns true if any of the layer's descendants has content to draw. 206 // Returns true if any of the layer's descendants has content to draw.
207 bool descendantDrawsContent(); 207 bool descendantDrawsContent();
208 208
209 CCLayerTreeHost* layerTreeHost() const { return m_layerTreeHost.get(); } 209 CCLayerTreeHost* layerTreeHost() const { return m_layerTreeHost.get(); }
210 virtual void cleanupResourcesRecursive(); 210 void cleanupResourcesRecursive();
211 211
212 protected: 212 protected:
213 GraphicsLayerChromium* m_owner; 213 GraphicsLayerChromium* m_owner;
214 explicit LayerChromium(GraphicsLayerChromium* owner); 214 explicit LayerChromium(GraphicsLayerChromium* owner);
215 215
216 // This is called to clean up resources being held in the same context as 216 // This is called to clean up resources being held in the same context as
217 // layerRendererContext(). Subclasses should override this method if they 217 // layerRendererContext(). Subclasses should override this method if they
218 // hold context-dependent resources such as textures. 218 // hold context-dependent resources such as textures.
219 virtual void cleanupResources(); 219 virtual void cleanupResources();
220 220
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 299
300 String m_name; 300 String m_name;
301 }; 301 };
302 302
303 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*); 303 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*);
304 304
305 } 305 }
306 #endif // USE(ACCELERATED_COMPOSITING) 306 #endif // USE(ACCELERATED_COMPOSITING)
307 307
308 #endif 308 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698