blob: 4741e8160194ca4f3bab932df3439edeaba55203 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
//
// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Trim11.h: Trim support utility class.
#ifndef LIBANGLE_RENDERER_D3D_D3D11_TRIM11_H_
#define LIBANGLE_RENDERER_D3D_D3D11_TRIM11_H_
#include "common/angleutils.h"
#include "libANGLE/angletypes.h"
#include "libANGLE/Error.h"
#if !defined(ANGLE_ENABLE_WINDOWS_STORE)
typedef void* EventRegistrationToken;
#else
#include <EventToken.h>
#endif
namespace rx
{
class Renderer11;
class Trim11 : angle::NonCopyable
{
public:
explicit Trim11(Renderer11 *renderer);
~Trim11();
private:
Renderer11 *mRenderer;
#if defined (ANGLE_ENABLE_WINDOWS_STORE)
EventRegistrationToken mApplicationSuspendedEventToken;
#endif
void trim();
bool registerForRendererTrimRequest();
void unregisterForRendererTrimRequest();
};
}
#endif // LIBANGLE_RENDERER_D3D_D3D11_TRIM11_H_
|