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

Unified Diff: cc/test/pixel_test_output_surface.h

Issue 2402173002: cc: Get rid of PostSwapBuffersComplete. (Closed)
Patch Set: postswap: fix-blimp-unittest-post-swap-acks Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test_output_surface.h
diff --git a/cc/test/pixel_test_output_surface.h b/cc/test/pixel_test_output_surface.h
index b11e7b37cb88c1b4dc2ca0d54089e8ccdfa6552a..6f1bc35df42a548dda3e7432874a72321bdf100c 100644
--- a/cc/test/pixel_test_output_surface.h
+++ b/cc/test/pixel_test_output_surface.h
@@ -5,6 +5,7 @@
#ifndef CC_TEST_PIXEL_TEST_OUTPUT_SURFACE_H_
#define CC_TEST_PIXEL_TEST_OUTPUT_SURFACE_H_
+#include "base/memory/weak_ptr.h"
#include "cc/output/output_surface.h"
namespace cc {
@@ -40,7 +41,10 @@ class PixelTestOutputSurface : public OutputSurface {
}
private:
- bool external_stencil_test_;
+ void SwapBuffersCallback();
+
+ bool external_stencil_test_ = false;
+ base::WeakPtrFactory<PixelTestOutputSurface> weak_ptr_factory_;
};
} // namespace cc
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698