| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2  * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 
| 3  * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3  * Copyright (C) 2008-2009 Torch Mobile, Inc. | 
| 4  * Copyright (C) 2013 Google Inc. All rights reserved. | 4  * Copyright (C) 2013 Google Inc. All rights reserved. | 
| 5  * | 5  * | 
| 6  * Redistribution and use in source and binary forms, with or without | 6  * Redistribution and use in source and binary forms, with or without | 
| 7  * modification, are permitted provided that the following conditions | 7  * modification, are permitted provided that the following conditions | 
| 8  * are met: | 8  * are met: | 
| 9  * 1. Redistributions of source code must retain the above copyright | 9  * 1. Redistributions of source code must retain the above copyright | 
| 10  *    notice, this list of conditions and the following disclaimer. | 10  *    notice, this list of conditions and the following disclaimer. | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57 | 57 | 
| 58 namespace blink { | 58 namespace blink { | 
| 59 | 59 | 
| 60 class DisplayItemList; | 60 class DisplayItemList; | 
| 61 class ImageBuffer; | 61 class ImageBuffer; | 
| 62 class KURL; | 62 class KURL; | 
| 63 | 63 | 
| 64 class PLATFORM_EXPORT GraphicsContext { | 64 class PLATFORM_EXPORT GraphicsContext { | 
| 65     WTF_MAKE_NONCOPYABLE(GraphicsContext); WTF_MAKE_FAST_ALLOCATED(GraphicsConte
     xt); | 65     WTF_MAKE_NONCOPYABLE(GraphicsContext); WTF_MAKE_FAST_ALLOCATED(GraphicsConte
     xt); | 
| 66 public: | 66 public: | 
| 67     enum AccessMode { |  | 
| 68         ReadOnly, |  | 
| 69         ReadWrite |  | 
| 70     }; |  | 
| 71 |  | 
| 72     enum DisabledMode { | 67     enum DisabledMode { | 
| 73         NothingDisabled = 0, // Run as normal. | 68         NothingDisabled = 0, // Run as normal. | 
| 74         FullyDisabled = 1 // Do absolutely minimal work to remove the cost of th
     e context from performance tests. | 69         FullyDisabled = 1 // Do absolutely minimal work to remove the cost of th
     e context from performance tests. | 
| 75     }; | 70     }; | 
| 76 | 71 | 
| 77     explicit GraphicsContext(DisplayItemList*, DisabledMode = NothingDisabled, S
     kMetaData* = 0); | 72     explicit GraphicsContext(DisplayItemList*, DisabledMode = NothingDisabled, S
     kMetaData* = 0); | 
| 78 | 73 | 
| 79     // TODO(chrishtr): Once Slimming Paint launches this should be removed (crbu
     g.com/471333). | 74     // TODO(chrishtr): Once Slimming Paint launches this should be removed (crbu
     g.com/471333). | 
| 80     // A 0 canvas is allowed, but in such cases the context must only have canva
     s | 75     // A 0 canvas is allowed, but in such cases the context must only have canva
     s | 
| 81     // related commands called when within a beginRecording/endRecording block. | 76     // related commands called when within a beginRecording/endRecording block. | 
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 390 | 385 | 
| 391     float m_deviceScaleFactor; | 386     float m_deviceScaleFactor; | 
| 392 | 387 | 
| 393     unsigned m_printing : 1; | 388     unsigned m_printing : 1; | 
| 394     unsigned m_hasMetaData : 1; | 389     unsigned m_hasMetaData : 1; | 
| 395 }; | 390 }; | 
| 396 | 391 | 
| 397 } // namespace blink | 392 } // namespace blink | 
| 398 | 393 | 
| 399 #endif // GraphicsContext_h | 394 #endif // GraphicsContext_h | 
| OLD | NEW | 
|---|