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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h

Issue 2362473002: Adding unit test for DrawingBuffer's bitmap recycling mechanism (Closed)
Patch Set: minor cleanup Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
index ce342c2d54454a420d54f67be10c0297d3bdd255..254a95af2a312e9cf62923a44212a300e79d4645 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -265,6 +265,9 @@ protected: // For unittests
bool initialize(const IntSize&, bool useMultisampling);
+ // Shared memory bitmaps that were released by the compositor and can be used again by this DrawingBuffer.
+ Vector<RecycledBitmap> m_recycledBitmaps;
+
private:
// All parameters necessary to generate the texture that will be passed to
// prepareMailbox.
@@ -490,8 +493,6 @@ private:
std::unique_ptr<cc::SharedBitmap> bitmap;
IntSize size;
};
- // Shared memory bitmaps that were released by the compositor and can be used again by this DrawingBuffer.
- Vector<RecycledBitmap> m_recycledBitmap;
// If the width and height of the Canvas's backing store don't
// match those that we were given in the most recent call to

Powered by Google App Engine
This is Rietveld 408576698