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

Unified Diff: content/shell/renderer/test_runner/WebTestProxy.h

Issue 266243002: Make displayAsyncThen use the CompositeAndReadbackAsync path. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: displayasync: rebase Created 6 years, 7 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 | content/shell/renderer/test_runner/WebTestProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/WebTestProxy.h
diff --git a/content/shell/renderer/test_runner/WebTestProxy.h b/content/shell/renderer/test_runner/WebTestProxy.h
index 7ecb38a24733a1393a87fe8a4b64487d74f835d9..adff5959a07c73250e00b095a6f42635a60812ad 100644
--- a/content/shell/renderer/test_runner/WebTestProxy.h
+++ b/content/shell/renderer/test_runner/WebTestProxy.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_
#define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBTESTPROXY_H_
+#include <deque>
#include <map>
#include <string>
@@ -109,7 +110,6 @@ public:
void didCloseChooser();
bool isChooserShown();
- void display(base::Closure callback);
void displayAsyncThen(base::Closure callback);
void discardBackingStore();
@@ -195,6 +195,8 @@ private:
void invalidateAll();
void animateNow();
void DrawSelectionRect(SkCanvas* canvas);
+ void DisplayForSoftwareMode(const base::Closure& callback);
+ void DidDisplayAsync(const base::Closure& callback, const SkBitmap& bitmap);
blink::WebWidget* webWidget();
@@ -214,7 +216,8 @@ private:
bool m_animateScheduled;
std::map<unsigned, std::string> m_resourceIdentifierMap;
std::map<unsigned, blink::WebURLRequest> m_requestMap;
- base::Callback<void(const SkBitmap&)> m_compositeAndReadbackCallback;
+ std::deque<base::Callback<void(const SkBitmap&)> >
+ m_compositeAndReadbackCallbacks;
bool m_logConsoleOutput;
int m_chooserCount;
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/WebTestProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698