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

Unified Diff: cc/test/pixel_test_delegating_output_surface.h

Issue 2075343003: Use a cc::Display for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mailbox-test
Patch Set: layouttests-display2: rebase Created 4 years, 6 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_pixel_test.cc ('k') | cc/test/pixel_test_delegating_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_delegating_output_surface.h
diff --git a/cc/test/pixel_test_delegating_output_surface.h b/cc/test/pixel_test_delegating_output_surface.h
index be3302b11f0ec82cb7030600a239d10cdaa2e68e..e27e52bb09bf6bc0b41f39ec9936a029cc36f746 100644
--- a/cc/test/pixel_test_delegating_output_surface.h
+++ b/cc/test/pixel_test_delegating_output_surface.h
@@ -7,6 +7,7 @@
#include "base/memory/weak_ptr.h"
#include "cc/output/output_surface.h"
+#include "cc/output/renderer_settings.h"
#include "cc/scheduler/begin_frame_source.h"
#include "cc/surfaces/display.h"
#include "cc/surfaces/display_client.h"
@@ -23,8 +24,11 @@ class PixelTestDelegatingOutputSurface : public OutputSurface,
PixelTestDelegatingOutputSurface(
scoped_refptr<ContextProvider> compositor_context_provider,
scoped_refptr<ContextProvider> worker_context_provider,
+ scoped_refptr<ContextProvider> display_context_provider,
+ const RendererSettings& renderer_settings,
SharedBitmapManager* shared_bitmap_manager,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
+ const gfx::Size& surface_expansion_size,
bool allow_force_reclaim_resources,
bool synchronous_composite);
~PixelTestDelegatingOutputSurface() override;
@@ -56,8 +60,13 @@ class PixelTestDelegatingOutputSurface : public OutputSurface,
SharedBitmapManager* const shared_bitmap_manager_;
gpu::GpuMemoryBufferManager* const gpu_memory_buffer_manager_;
+ const gfx::Size surface_expansion_size_;
const bool allow_force_reclaim_resources_;
const bool synchronous_composite_;
+ const RendererSettings renderer_settings_;
+
+ // Passed to the Display.
+ scoped_refptr<ContextProvider> display_context_provider_;
gfx::Size enlarge_pass_texture_amount_;
« no previous file with comments | « cc/test/layer_tree_pixel_test.cc ('k') | cc/test/pixel_test_delegating_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698