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

Unified Diff: cc/skpicture_content_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/scrollbar_layer_unittest.cc ('k') | cc/skpicture_content_layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/skpicture_content_layer_updater.h
diff --git a/cc/skpicture_content_layer_updater.h b/cc/skpicture_content_layer_updater.h
deleted file mode 100644
index 1befd9718ecac65603dcfb4f9a82ffa3a3928eab..0000000000000000000000000000000000000000
--- a/cc/skpicture_content_layer_updater.h
+++ /dev/null
@@ -1,79 +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_SKPICTURE_CONTENT_LAYER_UPDATER_H_
-#define CC_SKPICTURE_CONTENT_LAYER_UPDATER_H_
-
-#include "cc/content_layer_updater.h"
-#include "third_party/skia/include/core/SkPicture.h"
-
-class SkCanvas;
-
-namespace cc {
-
-class LayerPainter;
-
-// This class records the content_rect into an SkPicture. Subclasses, provide
-// different implementations of tile updating based on this recorded picture.
-// The BitmapSkPictureContentLayerUpdater and
-// FrameBufferSkPictureContentLayerUpdater are two examples of such
-// implementations.
-class SkPictureContentLayerUpdater : public ContentLayerUpdater {
- public:
- class Resource : public LayerUpdater::Resource {
- public:
- Resource(SkPictureContentLayerUpdater* 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:
- SkPictureContentLayerUpdater* updater_;
-
- DISALLOW_COPY_AND_ASSIGN(Resource);
- };
-
- static scoped_refptr<SkPictureContentLayerUpdater> Create(
- scoped_ptr<LayerPainter> painter);
-
- virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
- PrioritizedResourceManager* manager) OVERRIDE;
- virtual void SetOpaque(bool opaque) OVERRIDE;
-
- protected:
- explicit SkPictureContentLayerUpdater(scoped_ptr<LayerPainter> painter);
- virtual ~SkPictureContentLayerUpdater();
-
- virtual void PrepareToUpdate(gfx::Rect content_rect,
- gfx::Size tile_size,
- float contents_width_scale,
- float contents_height_scale,
- gfx::Rect* resulting_opaque_rect,
- RenderingStats* stats) OVERRIDE;
- void DrawPicture(SkCanvas* canvas);
- void UpdateTexture(ResourceUpdateQueue* queue,
- PrioritizedResource* texture,
- gfx::Rect source_rect,
- gfx::Vector2d dest_offset,
- bool partial_update);
-
- bool layer_is_opaque() const { return layer_is_opaque_; }
-
- private:
- // Recording canvas.
- SkPicture picture_;
- // True when it is known that all output pixels will be opaque.
- bool layer_is_opaque_;
-
- DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater);
-};
-
-} // namespace cc
-
-#endif // CC_SKPICTURE_CONTENT_LAYER_UPDATER_H_
« no previous file with comments | « cc/scrollbar_layer_unittest.cc ('k') | cc/skpicture_content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698