-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbitmapcache.cpp
More file actions
53 lines (41 loc) · 910 Bytes
/
bitmapcache.cpp
File metadata and controls
53 lines (41 loc) · 910 Bytes
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
46
47
48
49
50
51
52
53
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Contact:
* Moonlight List (moonlight-list@lists.ximian.com)
*
* Copyright 2009 Novell, Inc. (http://www.novell.com)
*
* See the LICENSE file included with the distribution for details.
*
*/
#include <config.h>
#include <cairo.h>
#include <glib.h>
#include "bitmapcache.h"
namespace Moonlight {
CacheMode::CacheMode ()
{
SetObjectType (Type::CACHEMODE);
}
CacheMode::~CacheMode ()
{
}
void
CacheMode::GetTransform (cairo_matrix_t *transform)
{
g_warning ("CacheMode::GetTransform has been called. The derived class should have overridden it.");
}
BitmapCache::BitmapCache ()
{
SetObjectType (Type::BITMAPCACHE);
}
BitmapCache::~BitmapCache ()
{
}
void
BitmapCache::GetTransform (cairo_matrix_t *transform)
{
double scale = GetRenderAtScale ();
cairo_matrix_init_scale (transform, scale, scale);
}
};