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

Unified Diff: cc/resources/software_rasterizer.h

Issue 820743002: cc: GPU rasterize tiles synchronously in PrepareToDraw. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: format and merge Created 6 years 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/resources/software_rasterizer.h
diff --git a/cc/resources/software_rasterizer.h b/cc/resources/software_rasterizer.h
new file mode 100644
index 0000000000000000000000000000000000000000..96e0d56d0def8e3c66c7638e19e964c456186cf3
--- /dev/null
+++ b/cc/resources/software_rasterizer.h
@@ -0,0 +1,34 @@
+// Copyright 2014 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.
+
+#ifndef CC_RESOURCES_SOFTWARE_RASTERIZER_H_
+#define CC_RESOURCES_SOFTWARE_RASTERIZER_H_
+
+#include <vector>
+
+#include "cc/base/cc_export.h"
+#include "cc/resources/rasterizer.h"
+
+namespace cc {
+
+class CC_EXPORT SoftwareRasterizer : public Rasterizer {
+ public:
+ ~SoftwareRasterizer();
+
+ static scoped_ptr<SoftwareRasterizer> Create();
+
+ PrepareTilesMode GetPrepareTilesMode() override;
+ void RasterizeTiles(const TileVector& tiles,
+ ResourcePool* resource_pool,
+ TileManager* tile_manager) override;
+
+ private:
+ SoftwareRasterizer();
+
+ DISALLOW_COPY_AND_ASSIGN(SoftwareRasterizer);
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_SOFTWARE_RASTERIZER_H_

Powered by Google App Engine
This is Rietveld 408576698