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

Unified Diff: cc/test/fake_raster_buffer_provider.cc

Issue 1910213005: cc: Refactor TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@task_states
Patch Set: feedback Created 4 years, 8 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/fake_raster_buffer_provider.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_raster_buffer_provider.cc
diff --git a/cc/test/fake_raster_buffer_provider.cc b/cc/test/fake_raster_buffer_provider.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9657b6be307476bc9ab19038339c9a6ae990a58d
--- /dev/null
+++ b/cc/test/fake_raster_buffer_provider.cc
@@ -0,0 +1,38 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/test/fake_raster_buffer_provider.h"
+
+namespace cc {
+
+FakeRasterBufferProviderImpl::FakeRasterBufferProviderImpl() {}
+
+FakeRasterBufferProviderImpl::~FakeRasterBufferProviderImpl() {}
+
+std::unique_ptr<RasterBuffer>
+FakeRasterBufferProviderImpl::AcquireBufferForRaster(
+ const Resource* resource,
+ uint64_t resource_content_id,
+ uint64_t previous_content_id) {
+ return nullptr;
+}
+
+void FakeRasterBufferProviderImpl::ReleaseBufferForRaster(
+ std::unique_ptr<RasterBuffer> buffer) {}
+
+void FakeRasterBufferProviderImpl::OrderingBarrier() {}
+
+ResourceFormat FakeRasterBufferProviderImpl::GetResourceFormat(
+ bool must_support_alpha) const {
+ return ResourceFormat::RGBA_8888;
+}
+
+bool FakeRasterBufferProviderImpl::GetResourceRequiresSwizzle(
+ bool must_support_alpha) const {
+ return ResourceFormatRequiresSwizzle(GetResourceFormat(must_support_alpha));
+}
+
+void FakeRasterBufferProviderImpl::Shutdown() {}
+
+} // namespace cc
« no previous file with comments | « cc/test/fake_raster_buffer_provider.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698