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

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: fix nits 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..913102f321d22951f602ebea1ff9dcd5b6da92d3 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -265,6 +265,13 @@ 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.
+ struct RecycledBitmap {
+ std::unique_ptr<cc::SharedBitmap> bitmap;
+ IntSize size;
+ };
+ Vector<RecycledBitmap> m_recycledBitmaps;
+
private:
// All parameters necessary to generate the texture that will be passed to
// prepareMailbox.
@@ -486,12 +493,6 @@ private:
};
// Mailboxes that were released by the compositor can be used again by this DrawingBuffer.
Deque<RefPtr<RecycledMailbox>> m_recycledMailboxQueue;
- struct RecycledBitmap {
- 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
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698