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

Unified Diff: cc/raster/tile_task.cc

Issue 1888713002: cc: Merge TileTaskRunner to TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename_tile_task_client
Patch Set: changed dependency patch 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
Index: cc/raster/tile_task.cc
diff --git a/cc/raster/tile_task_runner.cc b/cc/raster/tile_task.cc
similarity index 67%
rename from cc/raster/tile_task_runner.cc
rename to cc/raster/tile_task.cc
index fde8ad800e3f163af2b71891b4e1d065b49732c7..52c41cd2cd00e0e4c46b065e300098b2c2c14e71 100644
--- a/cc/raster/tile_task_runner.cc
+++ b/cc/raster/tile_task.cc
@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "cc/raster/tile_task_runner.h"
-#include "cc/resources/platform_color.h"
+#include "cc/raster/tile_task.h"
namespace cc {
@@ -52,24 +51,4 @@ bool TileTask::HasCompleted() const {
return did_complete_;
}
-bool TileTaskRunner::ResourceFormatRequiresSwizzle(ResourceFormat format) {
- switch (format) {
- case RGBA_8888:
- case BGRA_8888:
- // Initialize resource using the preferred PlatformColor component
- // order and swizzle in the shader instead of in software.
- return !PlatformColor::SameComponentOrder(format);
- case RGBA_4444:
- case ETC1:
- case ALPHA_8:
- case LUMINANCE_8:
- case RGB_565:
- case RED_8:
- case LUMINANCE_F16:
- return false;
- }
- NOTREACHED();
- return false;
-}
-
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698