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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/WebGLLayerChromium.cpp

Issue 7671031: Merge 92520 - [chromium] Accelerated canvas breaks when moving canvases or resources between Pages (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 namespace WebCore { 42 namespace WebCore {
43 43
44 PassRefPtr<WebGLLayerChromium> WebGLLayerChromium::create(GraphicsLayerChromium* owner) 44 PassRefPtr<WebGLLayerChromium> WebGLLayerChromium::create(GraphicsLayerChromium* owner)
45 { 45 {
46 return adoptRef(new WebGLLayerChromium(owner)); 46 return adoptRef(new WebGLLayerChromium(owner));
47 } 47 }
48 48
49 WebGLLayerChromium::WebGLLayerChromium(GraphicsLayerChromium* owner) 49 WebGLLayerChromium::WebGLLayerChromium(GraphicsLayerChromium* owner)
50 : CanvasLayerChromium(owner) 50 : CanvasLayerChromium(owner)
51 , m_context(0) 51 , m_context(0)
52 , m_textureId(0)
53 , m_textureChanged(true)
52 , m_contextSupportsRateLimitingExtension(false) 54 , m_contextSupportsRateLimitingExtension(false)
53 , m_rateLimitingTimer(this, &WebGLLayerChromium::rateLimitContext) 55 , m_rateLimitingTimer(this, &WebGLLayerChromium::rateLimitContext)
54 , m_textureUpdated(false) 56 , m_textureUpdated(false)
55 { 57 {
56 } 58 }
57 59
58 WebGLLayerChromium::~WebGLLayerChromium() 60 WebGLLayerChromium::~WebGLLayerChromium()
59 { 61 {
60 if (m_context && layerRenderer()) 62 if (m_context && layerRenderer())
61 layerRenderer()->removeChildContext(m_context); 63 layerRenderer()->removeChildContext(m_context);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 174
173 if (!m_context) 175 if (!m_context)
174 return; 176 return;
175 177
176 Extensions3DChromium* extensions = static_cast<Extensions3DChromium*>(m_cont ext->getExtensions()); 178 Extensions3DChromium* extensions = static_cast<Extensions3DChromium*>(m_cont ext->getExtensions());
177 extensions->rateLimitOffscreenContextCHROMIUM(); 179 extensions->rateLimitOffscreenContextCHROMIUM();
178 } 180 }
179 181
180 } 182 }
181 #endif // USE(ACCELERATED_COMPOSITING) 183 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « Source/WebCore/platform/graphics/chromium/WebGLLayerChromium.h ('k') | Source/WebCore/platform/graphics/gpu/DrawingBuffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698