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

Unified Diff: cc/test/pixel_test_output_surface.cc

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: tracing cleanup Created 3 years, 11 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.cc
diff --git a/cc/test/pixel_test_output_surface.cc b/cc/test/pixel_test_output_surface.cc
index b32bff80e47b077df4c7f5d19e527c811dcb390e..f16fbac743bb3fc19b46aed530a885c0fbe4fd10 100644
--- a/cc/test/pixel_test_output_surface.cc
+++ b/cc/test/pixel_test_output_surface.cc
@@ -21,11 +21,14 @@ PixelTestOutputSurface::PixelTestOutputSurface(
bool flipped_output_surface)
: OutputSurface(std::move(context_provider)), weak_ptr_factory_(this) {
capabilities_.flipped_output_surface = flipped_output_surface;
+ capabilities_.supports_stencil = true;
}
PixelTestOutputSurface::PixelTestOutputSurface(
std::unique_ptr<SoftwareOutputDevice> software_device)
- : OutputSurface(std::move(software_device)), weak_ptr_factory_(this) {}
+ : OutputSurface(std::move(software_device)), weak_ptr_factory_(this) {
+ capabilities_.supports_stencil = true;
+}
PixelTestOutputSurface::~PixelTestOutputSurface() = default;
@@ -44,7 +47,8 @@ void PixelTestOutputSurface::BindFramebuffer() {
void PixelTestOutputSurface::Reshape(const gfx::Size& size,
float device_scale_factor,
const gfx::ColorSpace& color_space,
- bool has_alpha) {
+ bool has_alpha,
+ bool use_stencil) {
if (context_provider()) {
context_provider()->ContextGL()->ResizeCHROMIUM(
size.width(), size.height(), device_scale_factor, has_alpha);

Powered by Google App Engine
This is Rietveld 408576698