| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010, Google Inc. All rights reserved. | 2 * Copyright (c) 2010, 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 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 GLenum creationInternalColorFormat = 0; | 243 GLenum creationInternalColorFormat = 0; |
| 244 GLenum colorFormat = 0; | 244 GLenum colorFormat = 0; |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 // If we used CHROMIUM_image as the backing storage for our buffers, | 247 // If we used CHROMIUM_image as the backing storage for our buffers, |
| 248 // we need to know the mapping from texture id to image. | 248 // we need to know the mapping from texture id to image. |
| 249 struct TextureInfo { | 249 struct TextureInfo { |
| 250 DISALLOW_NEW(); | 250 DISALLOW_NEW(); |
| 251 GLuint textureId = 0; | 251 GLuint textureId = 0; |
| 252 GLuint imageId = 0; | 252 GLuint imageId = 0; |
| 253 |
| 254 // A GpuMemoryBuffer is a concept that the compositor understands. and |
| 255 // is able to operate on. The id is scoped to renderer process. |
| 256 GLint gpuMemoryBufferId = -1; |
| 257 |
| 253 TextureParameters parameters; | 258 TextureParameters parameters; |
| 254 }; | 259 }; |
| 255 | 260 |
| 256 struct MailboxInfo : public RefCounted<MailboxInfo> { | 261 struct MailboxInfo : public RefCounted<MailboxInfo> { |
| 257 WTF_MAKE_NONCOPYABLE(MailboxInfo); | 262 WTF_MAKE_NONCOPYABLE(MailboxInfo); |
| 258 | 263 |
| 259 public: | 264 public: |
| 260 MailboxInfo() {} | 265 MailboxInfo() {} |
| 261 | 266 |
| 262 WebExternalTextureMailbox mailbox; | 267 WebExternalTextureMailbox mailbox; |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 // used to resize the Canvas. | 445 // used to resize the Canvas. |
| 441 SkBitmap m_resizingBitmap; | 446 SkBitmap m_resizingBitmap; |
| 442 | 447 |
| 443 // Used to flip a bitmap vertically. | 448 // Used to flip a bitmap vertically. |
| 444 Vector<uint8_t> m_scanline; | 449 Vector<uint8_t> m_scanline; |
| 445 }; | 450 }; |
| 446 | 451 |
| 447 } // namespace blink | 452 } // namespace blink |
| 448 | 453 |
| 449 #endif // DrawingBuffer_h | 454 #endif // DrawingBuffer_h |
| OLD | NEW |