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

Unified Diff: cc/resources/gpu_rasterizer.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/resources/float_clip_display_item.cc ('k') | cc/resources/gpu_rasterizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/gpu_rasterizer.h
diff --git a/cc/resources/gpu_rasterizer.h b/cc/resources/gpu_rasterizer.h
deleted file mode 100644
index 8c75f326d0d22ffd5e1b7cf8e5b686ec613d854d..0000000000000000000000000000000000000000
--- a/cc/resources/gpu_rasterizer.h
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright 2015 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_GPU_RASTERIZER_H_
-#define CC_RESOURCES_GPU_RASTERIZER_H_
-
-#include <vector>
-
-#include "cc/base/cc_export.h"
-#include "cc/resources/rasterizer.h"
-#include "cc/resources/resource_pool.h"
-#include "cc/resources/tile.h"
-#include "third_party/skia/include/core/SkMultiPictureDraw.h"
-
-namespace cc {
-
-class ContextProvider;
-class ResourceProvider;
-
-class CC_EXPORT GpuRasterizer : public Rasterizer {
- public:
- ~GpuRasterizer() override;
-
- static scoped_ptr<GpuRasterizer> Create(
- ContextProvider* context_provider,
- ResourceProvider* resource_provider,
- bool use_distance_field_text,
- bool threaded_gpu_rasterization_enabled,
- int msaa_sample_count);
-
- // Overriden from Rasterizer.
- PrepareTilesMode GetPrepareTilesMode() override;
- void RasterizeTiles(
- const TileVector& tiles,
- ResourcePool* resource_pool,
- ResourceFormat resource_format,
- const UpdateTileDrawInfoCallback& update_tile_draw_info) override;
-
- void RasterizeSource(bool use_worker_context,
- ResourceProvider::ScopedWriteLockGr* write_lock,
- const RasterSource* raster_source,
- const gfx::Rect& rect,
- float scale);
-
- ResourceProvider* resource_provider() { return resource_provider_; }
-
- private:
- GpuRasterizer(ContextProvider* context_provider,
- ResourceProvider* resource_provider,
- bool use_distance_filed_text,
- bool threaded_gpu_rasterization_enabled,
- int msaa_sample_count);
-
- using ScopedResourceWriteLocks =
- ScopedPtrVector<ResourceProvider::ScopedWriteLockGr>;
-
- ContextProvider* GetContextProvider(bool worker_context);
- void PerformSolidColorAnalysis(const Tile* tile,
- RasterSource::SolidColorAnalysis* analysis);
- void AddToMultiPictureDraw(const Tile* tile,
- const ScopedResource* resource,
- ScopedResourceWriteLocks* locks);
-
- ResourceProvider* resource_provider_;
- SkMultiPictureDraw multi_picture_draw_;
-
- bool use_distance_field_text_;
- bool threaded_gpu_rasterization_enabled_;
- int msaa_sample_count_;
-
- DISALLOW_COPY_AND_ASSIGN(GpuRasterizer);
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_GPU_RASTERIZER_H_
« no previous file with comments | « cc/resources/float_clip_display_item.cc ('k') | cc/resources/gpu_rasterizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698