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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void willOverwriteCanvas(); | 66 void willOverwriteCanvas(); |
67 SkCanvas* canvas(); | 67 SkCanvas* canvas(); |
68 void disableDeferral(); | 68 void disableDeferral(); |
69 bool checkSurfaceValid(); | 69 bool checkSurfaceValid(); |
70 bool restoreSurface(); | 70 bool restoreSurface(); |
71 WebLayer* layer() const; | 71 WebLayer* layer() const; |
72 bool isAccelerated() const { return true; } | 72 bool isAccelerated() const { return true; } |
73 void setFilterQuality(SkFilterQuality); | 73 void setFilterQuality(SkFilterQuality); |
74 void setIsHidden(bool); | 74 void setIsHidden(bool); |
75 void setImageBuffer(ImageBuffer*); | 75 void setImageBuffer(ImageBuffer*); |
76 void didDraw(); | 76 void didDraw(const FloatRect&); |
77 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); | 77 bool writePixels(const SkImageInfo&, const void* pixels, size_t rowBytes, in
t x, int y); |
78 void flush(); | 78 void flush(); |
79 void flushGpu(); | 79 void flushGpu(); |
80 | 80 |
81 void limitPendingFrames(); | 81 void limitPendingFrames(); |
82 bool isHidden() { return m_isHidden; } | 82 bool isHidden() { return m_isHidden; } |
83 | 83 |
84 void beginDestruction(); | 84 void beginDestruction(); |
85 | 85 |
86 PassRefPtr<SkImage> newImageSnapshot(); | 86 PassRefPtr<SkImage> newImageSnapshot(); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 enum { | 126 enum { |
127 // We should normally not have more that two active mailboxes at a time, | 127 // We should normally not have more that two active mailboxes at a time, |
128 // but sometime we may have three due to the async nature of mailbox han
dling. | 128 // but sometime we may have three due to the async nature of mailbox han
dling. |
129 MaxActiveMailboxes = 3, | 129 MaxActiveMailboxes = 3, |
130 }; | 130 }; |
131 | 131 |
132 Deque<MailboxInfo, MaxActiveMailboxes> m_mailboxes; | 132 Deque<MailboxInfo, MaxActiveMailboxes> m_mailboxes; |
133 GLenum m_lastFilter; | 133 GLenum m_lastFilter; |
134 OpacityMode m_opacityMode; | 134 OpacityMode m_opacityMode; |
135 IntSize m_size; | 135 IntSize m_size; |
| 136 int m_recordingPixelCount; |
136 }; | 137 }; |
137 | 138 |
138 } // namespace blink | 139 } // namespace blink |
139 | 140 |
140 #endif | 141 #endif |
OLD | NEW |