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

Unified Diff: sky/compositor/layer.h

Issue 1213683004: Move //sky/compositor to //sky/viewer/compositor (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/compositor/BUILD.gn ('k') | sky/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/layer.h
diff --git a/sky/compositor/layer.h b/sky/compositor/layer.h
deleted file mode 100644
index 761d2bdbf8c1c164976cfde50a79dbbb22c0566f..0000000000000000000000000000000000000000
--- a/sky/compositor/layer.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright 2014 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 SKY_COMPOSITOR_LAYER_H_
-#define SKY_COMPOSITOR_LAYER_H_
-
-#include "base/memory/ref_counted.h"
-#include "mojo/gpu/gl_texture.h"
-#include "skia/ext/refptr.h"
-#include "sky/compositor/layer_client.h"
-#include "sky/compositor/rasterizer.h"
-#include "third_party/skia/include/core/SkPicture.h"
-#include "ui/gfx/geometry/rect.h"
-
-namespace sky {
-
-class LayerHost;
-
-class Layer : public base::RefCounted<Layer> {
- public:
- explicit Layer(LayerClient* client);
-
- void SetSize(const gfx::Size& size);
- void Display();
-
- scoped_ptr<mojo::GLTexture> GetTexture();
-
- const gfx::Size& size() const { return size_; }
-
- void set_rasterizer(scoped_ptr<Rasterizer> rasterizer) {
- rasterizer_ = rasterizer.Pass();
- }
-
- private:
- friend class base::RefCounted<Layer>;
- ~Layer();
-
- skia::RefPtr<SkPicture> RecordPicture();
-
- LayerClient* client_;
- gfx::Size size_;
- scoped_ptr<mojo::GLTexture> texture_;
- scoped_ptr<Rasterizer> rasterizer_;
-
- DISALLOW_COPY_AND_ASSIGN(Layer);
-};
-
-} // namespace sky
-
-#endif // SKY_COMPOSITOR_LAYER_H_
« no previous file with comments | « sky/compositor/BUILD.gn ('k') | sky/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698