| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 #ifndef OpaqueRectTrackingContentLayerDelegate_h | 25 #ifndef OpaqueRectTrackingContentLayerDelegate_h |
| 26 #define OpaqueRectTrackingContentLayerDelegate_h | 26 #define OpaqueRectTrackingContentLayerDelegate_h |
| 27 | 27 |
| 28 #include "platform/PlatformExport.h" | 28 #include "platform/PlatformExport.h" |
| 29 #include "public/platform/WebContentLayerClient.h" | 29 #include "public/platform/WebContentLayerClient.h" |
| 30 #include "wtf/Noncopyable.h" | 30 #include "wtf/Noncopyable.h" |
| 31 #include "wtf/PassOwnPtr.h" | 31 #include "wtf/PassOwnPtr.h" |
| 32 | 32 |
| 33 class SkCanvas; | 33 class SkCanvas; |
| 34 | 34 |
| 35 namespace WebCore { | 35 namespace blink { |
| 36 | 36 |
| 37 class GraphicsContext; | 37 class GraphicsContext; |
| 38 class IntRect; | 38 class IntRect; |
| 39 | 39 |
| 40 class PLATFORM_EXPORT GraphicsContextPainter { | 40 class PLATFORM_EXPORT GraphicsContextPainter { |
| 41 public: | 41 public: |
| 42 virtual void paint(GraphicsContext&, const IntRect& clip) = 0; | 42 virtual void paint(GraphicsContext&, const IntRect& clip) = 0; |
| 43 | 43 |
| 44 protected: | 44 protected: |
| 45 virtual ~GraphicsContextPainter() { } | 45 virtual ~GraphicsContextPainter() { } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 60 blink::WebContentLayerClient::GraphicsContextStatus = GraphicsContextEna
bled) OVERRIDE; | 60 blink::WebContentLayerClient::GraphicsContextStatus = GraphicsContextEna
bled) OVERRIDE; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 GraphicsContextPainter* m_painter; | 63 GraphicsContextPainter* m_painter; |
| 64 bool m_opaque; | 64 bool m_opaque; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } | 67 } |
| 68 | 68 |
| 69 #endif // OpaqueRectTrackingContentLayerDelegate_h | 69 #endif // OpaqueRectTrackingContentLayerDelegate_h |
| OLD | NEW |