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

Unified Diff: cc/image_layer_updater.h

Issue 12471007: Part 8 of cc/ directory shuffles: resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/image_layer.cc ('k') | cc/image_layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/image_layer_updater.h
diff --git a/cc/image_layer_updater.h b/cc/image_layer_updater.h
deleted file mode 100644
index 031ec60397fbe1a6fd81af076cdf012ee31baa09..0000000000000000000000000000000000000000
--- a/cc/image_layer_updater.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2012 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_IMAGE_LAYER_UPDATER_H_
-#define CC_IMAGE_LAYER_UPDATER_H_
-
-#include "cc/layer_updater.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-
-namespace cc {
-
-class ResourceUpdateQueue;
-
-class ImageLayerUpdater : public LayerUpdater {
- public:
- class Resource : public LayerUpdater::Resource {
- public:
- Resource(ImageLayerUpdater* updater,
- scoped_ptr<PrioritizedResource> texture);
- virtual ~Resource();
-
- virtual void Update(ResourceUpdateQueue* queue,
- gfx::Rect source_rect,
- gfx::Vector2d dest_offset,
- bool partial_update,
- RenderingStats* stats) OVERRIDE;
-
- private:
- ImageLayerUpdater* updater_;
-
- DISALLOW_COPY_AND_ASSIGN(Resource);
- };
-
- static scoped_refptr<ImageLayerUpdater> Create();
-
- virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
- PrioritizedResourceManager*) OVERRIDE;
-
- void UpdateTexture(ResourceUpdateQueue* queue,
- PrioritizedResource* texture,
- gfx::Rect source_rect,
- gfx::Vector2d dest_offset,
- bool partial_update);
-
- void set_bitmap(const SkBitmap& bitmap) { bitmap_ = bitmap; }
-
- private:
- ImageLayerUpdater() {}
- virtual ~ImageLayerUpdater() {}
-
- SkBitmap bitmap_;
-
- DISALLOW_COPY_AND_ASSIGN(ImageLayerUpdater);
-};
-
-} // namespace cc
-
-#endif // CC_IMAGE_LAYER_UPDATER_H_
« no previous file with comments | « cc/image_layer.cc ('k') | cc/image_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698