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

Side by Side Diff: include/core/SkMipMapLevel.h

Issue 1249543003: Creating functions for uploading a mipmapped texture. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Fixing incorrect rebase. Created 5 years, 2 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
OLDNEW
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkMipMapLevel_DEFINED
9 #define SkMipMapLevel_DEFINED
10
11 #include "SkTypes.h"
12
13 class SkDiscardableMemory;
14
15 typedef SkDiscardableMemory* (*SkDiscardableFactoryProc)(size_t bytes);
16
17 struct SkMipMapLevel {
18 SkMipMapLevel(const void* texels, size_t rowBytes, uint32_t width, uint32_t height);
19
20 SkMipMapLevel() = delete;
21 SkMipMapLevel(const SkMipMapLevel& rhs) = default;
22 SkMipMapLevel(SkMipMapLevel&& rhs) = default;
23
24 SkMipMapLevel& operator =(const SkMipMapLevel& rhs) = default;
25 SkMipMapLevel& operator =(SkMipMapLevel&& rhs) = default;
26
27 const void* fTexels;
28 size_t fRowBytes;
29 uint32_t fWidth;
30 uint32_t fHeight;
31 };
32
33 #endif
OLDNEW
« no previous file with comments | « gyp/core.gypi ('k') | include/gpu/GrContext.h » ('j') | include/gpu/GrContext.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698