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

Unified Diff: cc/test/test_delegating_output_surface.h

Issue 2162083005: Use surface copy requests for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman comment Created 4 years, 5 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 | « no previous file | cc/test/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/test_delegating_output_surface.h
diff --git a/cc/test/test_delegating_output_surface.h b/cc/test/test_delegating_output_surface.h
index cf7a32b4fc0fc8b4acd250af6ea06b11b0bc770b..718116fc0b45c30e4242667e70299f81264d21b1 100644
--- a/cc/test/test_delegating_output_surface.h
+++ b/cc/test/test_delegating_output_surface.h
@@ -18,6 +18,8 @@
namespace cc {
+class CopyOutputRequest;
+
class TestDelegatingOutputSurface : public OutputSurface,
public SurfaceFactoryClient,
public DisplayClient {
@@ -35,6 +37,9 @@ class TestDelegatingOutputSurface : public OutputSurface,
Display* display() const { return display_.get(); }
+ // Will be submitted with the next SwapBuffers.
+ void RequestCopyOfOutput(std::unique_ptr<CopyOutputRequest> request);
+
// OutputSurface implementation.
bool BindToClient(OutputSurfaceClient* client) override;
void DetachFromClient() override;
@@ -68,6 +73,8 @@ class TestDelegatingOutputSurface : public OutputSurface,
bool bound_ = false;
+ std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests_;
+
base::WeakPtrFactory<TestDelegatingOutputSurface> weak_ptrs_;
};
« no previous file with comments | « no previous file | cc/test/test_delegating_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698