Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Side by Side Diff: Source/platform/graphics/GraphicsContext.h

Issue 1229693007: Drop GraphicsContext::AccessMode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698