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

Unified Diff: cc/resources/layer_updater.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/layer_tiling_data.cc ('k') | cc/resources/layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/layer_updater.h
diff --git a/cc/resources/layer_updater.h b/cc/resources/layer_updater.h
deleted file mode 100644
index a5eb0a11da744538d892033d04fea2656811ae2a..0000000000000000000000000000000000000000
--- a/cc/resources/layer_updater.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright 2011 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_LAYER_UPDATER_H_
-#define CC_RESOURCES_LAYER_UPDATER_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "cc/base/cc_export.h"
-#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/geometry/vector2d.h"
-
-namespace cc {
-
-class PrioritizedResource;
-class PrioritizedResourceManager;
-class ResourceUpdateQueue;
-class TextureManager;
-
-class CC_EXPORT LayerUpdater : public base::RefCounted<LayerUpdater> {
- public:
- // Allows updaters to store per-resource update properties.
- class CC_EXPORT Resource {
- public:
- virtual ~Resource();
-
- PrioritizedResource* texture() { return texture_.get(); }
- // TODO(reveman): partial_update should be a property of this class
- // instead of an argument passed to Update().
- virtual void Update(ResourceUpdateQueue* queue,
- const gfx::Rect& source_rect,
- const gfx::Vector2d& dest_offset,
- bool partial_update) = 0;
-
- protected:
- explicit Resource(scoped_ptr<PrioritizedResource> texture);
-
- private:
- scoped_ptr<PrioritizedResource> texture_;
-
- DISALLOW_COPY_AND_ASSIGN(Resource);
- };
-
- LayerUpdater() {}
-
- virtual scoped_ptr<Resource> CreateResource(
- PrioritizedResourceManager* manager) = 0;
- virtual void PrepareToUpdate(const gfx::Size& content_size,
- const gfx::Rect& paint_rect,
- const gfx::Size& tile_size,
- float contents_width_scale,
- float contents_height_scale) {}
- virtual void ReduceMemoryUsage() {}
-
- // Set true by the layer when it is known that the entire output is going to
- // be opaque.
- virtual void SetOpaque(bool opaque) {}
- // Set true by the layer when it is known that the entire output bounds will
- // be rasterized.
- virtual void SetFillsBoundsCompletely(bool fills_bounds) {}
- virtual void SetBackgroundColor(SkColor background_color) {}
-
- protected:
- virtual ~LayerUpdater() {}
-
- private:
- friend class base::RefCounted<LayerUpdater>;
-
- DISALLOW_COPY_AND_ASSIGN(LayerUpdater);
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_LAYER_UPDATER_H_
« no previous file with comments | « cc/resources/layer_tiling_data.cc ('k') | cc/resources/layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698