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

Unified Diff: cc/resources/content_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/compositing_display_item.cc ('k') | cc/resources/content_layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/content_layer_updater.h
diff --git a/cc/resources/content_layer_updater.h b/cc/resources/content_layer_updater.h
deleted file mode 100644
index 0f26b820ff45aaf46e7d0baee31b605fd3063fbe..0000000000000000000000000000000000000000
--- a/cc/resources/content_layer_updater.h
+++ /dev/null
@@ -1,66 +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_CONTENT_LAYER_UPDATER_H_
-#define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
-
-#include "cc/base/cc_export.h"
-#include "cc/resources/layer_updater.h"
-#include "ui/gfx/geometry/rect.h"
-
-class SkCanvas;
-
-namespace cc {
-
-class LayerPainter;
-class RenderingStatsInstrumentation;
-
-// Base class for BitmapContentLayerUpdater and
-// SkPictureContentLayerUpdater that reduces code duplication between
-// their respective PaintContents implementations.
-class CC_EXPORT ContentLayerUpdater : public LayerUpdater {
- public:
- void SetOpaque(bool opaque) override;
- void SetFillsBoundsCompletely(bool fills_bounds) override;
- void SetBackgroundColor(SkColor background_color) override;
-
- protected:
- ContentLayerUpdater(scoped_ptr<LayerPainter> painter, int layer_id);
- ~ContentLayerUpdater() override;
-
- // Paints the contents. |content_size| size of the underlying layer in
- // layer's content space. |paint_rect| bounds to paint in content space of the
- // layer. Both |content_size| and |paint_rect| are in pixels.
- void PaintContents(SkCanvas* canvas,
- const gfx::Size& layer_content_size,
- const gfx::Rect& paint_rect,
- float contents_width_scale,
- float contents_height_scale);
- gfx::Rect paint_rect() const { return paint_rect_; }
-
- bool layer_is_opaque() const { return layer_is_opaque_; }
- bool layer_fills_bounds_completely() const {
- return layer_fills_bounds_completely_;
- }
-
- SkColor background_color() const { return background_color_; }
-
- int layer_id_;
-
- // True when it is known that all output pixels will be opaque.
- bool layer_is_opaque_;
- // True when it is known that all output pixels will be filled.
- bool layer_fills_bounds_completely_;
-
- private:
- gfx::Rect paint_rect_;
- scoped_ptr<LayerPainter> painter_;
- SkColor background_color_;
-
- DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater);
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
« no previous file with comments | « cc/resources/compositing_display_item.cc ('k') | cc/resources/content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698