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

Side by Side Diff: mojo/skia/ganesh_helpers.h

Issue 1534033002: Improve Ganesh helpers. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-8
Patch Set: rebase Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « mojo/skia/ganesh_framebuffer_surface.cc ('k') | mojo/skia/ganesh_helpers.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SKIA_GANESH_HELPERS_H_
6 #define MOJO_SKIA_GANESH_HELPERS_H_
abarth 2016/01/18 04:18:40 ganesh_helpers.h isn't a great name. It's vague a
7
8 #include "base/callback.h"
9 #include "mojo/skia/ganesh_context.h"
10 #include "skia/ext/refptr.h"
11
12 class SkImage;
13
14 namespace mojo {
15 namespace skia {
16
17 // Creates a Skia image from a GL texture.
18 // The underlying texture must be kept alive for as long as the SkImage exists.
19 // Invokes |release_callback| when the SkImage is deleted.
20 ::skia::RefPtr<SkImage> CreateImageFromTexture(
21 const GaneshContext::Scope& scope,
22 uint32_t texture_id,
23 uint32_t width,
24 uint32_t height,
25 const base::Closure& release_callback);
26
27 } // namespace skia
28 } // namespace mojo
29
30 #endif // MOJO_SKIA_GANESH_HELPERS_H_
OLDNEW
« no previous file with comments | « mojo/skia/ganesh_framebuffer_surface.cc ('k') | mojo/skia/ganesh_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698