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

Unified Diff: sky/compositor/rasterizer_ganesh.cc

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/rasterizer_ganesh.h ('k') | sky/compositor/resource_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/compositor/rasterizer_ganesh.cc
diff --git a/sky/compositor/rasterizer_ganesh.cc b/sky/compositor/rasterizer_ganesh.cc
deleted file mode 100644
index 46ac59be5d88434f6596776249d18d27d37905b8..0000000000000000000000000000000000000000
--- a/sky/compositor/rasterizer_ganesh.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2015 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.
-
-#include "sky/compositor/rasterizer_ganesh.h"
-
-#include "base/trace_event/trace_event.h"
-#include "mojo/skia/ganesh_surface.h"
-#include "sky/compositor/layer_host.h"
-#include "third_party/skia/include/core/SkCanvas.h"
-#include "third_party/skia/include/core/SkPicture.h"
-
-namespace sky {
-
-RasterizerGanesh::RasterizerGanesh(LayerHost* host) : host_(host) {
- DCHECK(host_);
-}
-
-RasterizerGanesh::~RasterizerGanesh() {
-}
-
-scoped_ptr<mojo::GLTexture> RasterizerGanesh::Rasterize(SkPicture* picture) {
- TRACE_EVENT0("sky", "RasterizerGanesh::Rasterize");
-
- SkRect cull_rect = picture->cullRect();
- gfx::Size size(cull_rect.width(), cull_rect.height());
-
- mojo::GaneshSurface surface(host_->ganesh_context(),
- host_->resource_manager()->CreateTexture(size));
-
- SkCanvas* canvas = surface.canvas();
- canvas->drawPicture(picture);
- canvas->flush();
-
- return surface.TakeTexture();
-}
-
-} // namespace sky
« no previous file with comments | « sky/compositor/rasterizer_ganesh.h ('k') | sky/compositor/resource_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698