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

Side by Side Diff: sky/engine/core/html/canvas/Canvas2DContextAttributes.h

Issue 731863003: Remove CSSCompositing (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: preland Created 6 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, 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 * * Redistributions of source code must retain the above copyright 7 * * 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 * * Redistributions in binary form must reproduce the above 9 * * Redistributions in binary form must reproduce the above
10 * copyright notice, this list of conditions and the following disclaimer 10 * copyright notice, this list of conditions and the following disclaimer
(...skipping 28 matching lines...) Expand all
39 DiscardableStorage 39 DiscardableStorage
40 }; 40 };
41 41
42 class Canvas2DContextAttributes : public CanvasContextAttributes, public ScriptW rappable { 42 class Canvas2DContextAttributes : public CanvasContextAttributes, public ScriptW rappable {
43 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(Canvas2DContextAttributes); 43 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(Canvas2DContextAttributes);
44 DEFINE_WRAPPERTYPEINFO(); 44 DEFINE_WRAPPERTYPEINFO();
45 public: 45 public:
46 // Create a new attributes object 46 // Create a new attributes object
47 static PassRefPtr<Canvas2DContextAttributes> create(); 47 static PassRefPtr<Canvas2DContextAttributes> create();
48 48
49 // Whether or not the drawing buffer has an alpha channel; default=true
50 bool alpha() const;
51 void setAlpha(bool);
52
53 String storage() const; 49 String storage() const;
54 void setStorage(const String&); 50 void setStorage(const String&);
55 Canvas2DContextStorage parsedStorage() const; 51 Canvas2DContextStorage parsedStorage() const;
56 52
57 protected: 53 protected:
58 Canvas2DContextAttributes(); 54 Canvas2DContextAttributes();
59 55
60 bool m_alpha;
61 Canvas2DContextStorage m_storage; 56 Canvas2DContextStorage m_storage;
62 }; 57 };
63 58
64 } // namespace blink 59 } // namespace blink
65 60
66 #endif // Canvas2DContextAttributes_h 61 #endif // Canvas2DContextAttributes_h
OLDNEW
« no previous file with comments | « sky/engine/core/frame/UseCounter.h ('k') | sky/engine/core/html/canvas/Canvas2DContextAttributes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698