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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 2227293002: Add RAIL tracing category to Chrome tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add missing PaintTiming markers Created 4 years, 4 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
OLDNEW
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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 // 1. WebGL draws something. 245 // 1. WebGL draws something.
246 // 2. The compositor begins the frame. 246 // 2. The compositor begins the frame.
247 // 3. Javascript makes a context lost using WEBGL_lose_context extension . 247 // 3. Javascript makes a context lost using WEBGL_lose_context extension .
248 // 4. Here. 248 // 4. Here.
249 return false; 249 return false;
250 } 250 }
251 ASSERT(!m_isHidden); 251 ASSERT(!m_isHidden);
252 if (!m_contentsChanged) 252 if (!m_contentsChanged)
253 return false; 253 return false;
254 254
255 TRACE_EVENT0("blink", "DrawingBuffer::prepareMailbox"); 255 TRACE_EVENT0("blink,rail", "DrawingBuffer::prepareMailbox");
256 256
257 if (m_newMailboxCallback) 257 if (m_newMailboxCallback)
258 (*m_newMailboxCallback)(); 258 (*m_newMailboxCallback)();
259 259
260 // Resolve the multisampled buffer into m_colorBuffer texture. 260 // Resolve the multisampled buffer into m_colorBuffer texture.
261 if (m_antiAliasingMode != None) 261 if (m_antiAliasingMode != None)
262 commit(); 262 commit();
263 263
264 if (bitmap) { 264 if (bitmap) {
265 bitmap->setSize(size()); 265 bitmap->setSize(size());
(...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 1112
1113 void DrawingBuffer::restoreTextureBindings() 1113 void DrawingBuffer::restoreTextureBindings()
1114 { 1114 {
1115 // This class potentially modifies the bindings for GL_TEXTURE_2D and 1115 // This class potentially modifies the bindings for GL_TEXTURE_2D and
1116 // GL_TEXTURE_RECTANGLE. Only GL_TEXTURE_2D needs to be restored since 1116 // GL_TEXTURE_RECTANGLE. Only GL_TEXTURE_2D needs to be restored since
1117 // the public interface for WebGL does not support GL_TEXTURE_RECTANGLE. 1117 // the public interface for WebGL does not support GL_TEXTURE_RECTANGLE.
1118 m_gl->BindTexture(GL_TEXTURE_2D, m_texture2DBinding); 1118 m_gl->BindTexture(GL_TEXTURE_2D, m_texture2DBinding);
1119 } 1119 }
1120 1120
1121 } // namespace blink 1121 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintTiming.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698