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

Unified Diff: cc/delegated_renderer_layer.h

Issue 12603013: Part 10 of cc/ directory shuffles: layers (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/debug/debug_rect_history.cc ('k') | cc/delegated_renderer_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/delegated_renderer_layer.h
diff --git a/cc/delegated_renderer_layer.h b/cc/delegated_renderer_layer.h
deleted file mode 100644
index 0c7d4635ce123b675247fd1e79bdd6f1093db274..0000000000000000000000000000000000000000
--- a/cc/delegated_renderer_layer.h
+++ /dev/null
@@ -1,49 +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_DELEGATED_RENDERER_LAYER_H_
-#define CC_DELEGATED_RENDERER_LAYER_H_
-
-#include "cc/base/cc_export.h"
-#include "cc/layer.h"
-#include "cc/resources/transferable_resource.h"
-
-namespace cc {
-class DelegatedFrameData;
-
-class CC_EXPORT DelegatedRendererLayer : public Layer {
- public:
- static scoped_refptr<DelegatedRendererLayer> Create();
-
- virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl)
- OVERRIDE;
- virtual void PushPropertiesTo(LayerImpl* impl) OVERRIDE;
- virtual bool DrawsContent() const OVERRIDE;
-
- // Set the size at which the frame should be displayed, with the origin at the
- // layer's origin. This must always contain at least the layer's bounds. A
- // value of (0, 0) implies that the frame should be displayed to fit exactly
- // in the layer's bounds.
- void SetDisplaySize(gfx::Size size);
-
- void SetFrameData(scoped_ptr<DelegatedFrameData> frame_data);
-
- // Passes ownership of any unused resources that had been given by the child
- // compositor to the given array, so they can be given back to the child.
- void TakeUnusedResourcesForChildCompositor(TransferableResourceArray* array);
-
- protected:
- DelegatedRendererLayer();
- virtual ~DelegatedRendererLayer();
-
- private:
- scoped_ptr<DelegatedFrameData> frame_data_;
- gfx::RectF damage_in_frame_;
- gfx::Size frame_size_;
- gfx::Size display_size_;
- TransferableResourceArray unused_resources_for_child_compositor_;
-};
-
-}
-#endif // CC_DELEGATED_RENDERER_LAYER_H_
« no previous file with comments | « cc/debug/debug_rect_history.cc ('k') | cc/delegated_renderer_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698