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

Unified Diff: cc/test/pixel_test_output_surface.h

Issue 2402173002: cc: Get rid of PostSwapBuffersComplete. (Closed)
Patch Set: postswap: . 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
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 3b3f3f967fedc2dc5a7d322dd22b4d996b506215..25f9c18c0551dc9a31b928db6b9cf8b54855d00c 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 {
@@ -43,8 +44,11 @@ class PixelTestOutputSurface : public OutputSurface {
}
private:
+ void SwapBuffersCallback();
+
gfx::Size surface_expansion_size_;
- bool external_stencil_test_;
+ bool external_stencil_test_ = false;
+ base::WeakPtrFactory<PixelTestOutputSurface> weak_ptr_factory_;
};
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698