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

Unified Diff: cc/surfaces/surfaces_pixeltest.cc

Issue 2136413002: Update Surface ID Terminology (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix webkit_unit_tests 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
Index: cc/surfaces/surfaces_pixeltest.cc
diff --git a/cc/surfaces/surfaces_pixeltest.cc b/cc/surfaces/surfaces_pixeltest.cc
index ae2c9ba4fab6c5fdd46034b12df9ef372bdb0b44..e34067260691e3e5e392c4b73180b81fab9cf89e 100644
--- a/cc/surfaces/surfaces_pixeltest.cc
+++ b/cc/surfaces/surfaces_pixeltest.cc
@@ -21,6 +21,9 @@
namespace cc {
namespace {
+static constexpr uint32_t kArbitraryGpuId = 0;
+static constexpr uint32_t kArbitraryClientId = 1u;
+
class EmptySurfaceFactoryClient : public SurfaceFactoryClient {
public:
void ReturnResources(const ReturnedResourceArray& resources) override {}
@@ -29,7 +32,9 @@ class EmptySurfaceFactoryClient : public SurfaceFactoryClient {
class SurfacesPixelTest : public RendererPixelTest<GLRenderer> {
public:
- SurfacesPixelTest() : allocator_(1u), factory_(&manager_, &client_) {}
+ SurfacesPixelTest()
+ : allocator_(kArbitraryGpuId, kArbitraryClientId),
+ factory_(&manager_, &client_) {}
protected:
SurfaceManager manager_;

Powered by Google App Engine
This is Rietveld 408576698