OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... | |
30 | 30 |
31 #ifndef GraphicsContextBuilder_h | 31 #ifndef GraphicsContextBuilder_h |
32 #define GraphicsContextBuilder_h | 32 #define GraphicsContextBuilder_h |
33 | 33 |
34 #include "core/platform/graphics/GraphicsContext.h" | 34 #include "core/platform/graphics/GraphicsContext.h" |
35 | 35 |
36 #include "core/platform/graphics/skia/PlatformContextSkia.h" | 36 #include "core/platform/graphics/skia/PlatformContextSkia.h" |
37 | 37 |
38 namespace WebKit { | 38 namespace WebKit { |
39 | 39 |
40 class GraphicsContextBuilder { | 40 class GraphicsContextBuilder { |
jamesr
2013/04/29 23:56:17
this class can definitely go away (as can WebCanva
| |
41 public: | 41 public: |
42 GraphicsContextBuilder(WebCanvas* canvas) | 42 GraphicsContextBuilder(WebCanvas* canvas) |
43 : m_platformContext(canvas) | 43 : m_graphicsContext(canvas) |
44 , m_graphicsContext(&m_platformContext) | |
45 { | 44 { |
46 } | 45 } |
47 | 46 |
48 WebCore::GraphicsContext& context() { return m_graphicsContext; } | 47 WebCore::GraphicsContext& context() { return m_graphicsContext; } |
49 | 48 |
50 private: | 49 private: |
51 WebCore::PlatformContextSkia m_platformContext; | |
52 WebCore::GraphicsContext m_graphicsContext; | 50 WebCore::GraphicsContext m_graphicsContext; |
53 }; | 51 }; |
54 | 52 |
55 } // namespace WebKit | 53 } // namespace WebKit |
56 | 54 |
57 #endif | 55 #endif |
OLD | NEW |