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

Unified Diff: cc/io_surface_layer_impl.cc

Issue 11439026: Revert 171403 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/io_surface_layer_impl.h ('k') | cc/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/io_surface_layer_impl.cc
===================================================================
--- cc/io_surface_layer_impl.cc (revision 171405)
+++ cc/io_surface_layer_impl.cc (working copy)
@@ -6,13 +6,13 @@
#include "base/stringprintf.h"
#include "cc/gl_renderer.h" // For the GLC() macro.
+#include "cc/graphics_context.h"
#include "cc/io_surface_draw_quad.h"
#include "cc/layer_tree_host_impl.h"
-#include "cc/output_surface.h"
#include "cc/quad_sink.h"
-#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "third_party/khronos/GLES2/gl2ext.h"
+#include <public/WebGraphicsContext3D.h>
namespace cc {
@@ -29,9 +29,9 @@
if (!m_ioSurfaceTextureId)
return;
- OutputSurface* outputSurface = layerTreeHostImpl()->outputSurface();
+ GraphicsContext* context = layerTreeHostImpl()->context();
// FIXME: Implement this path for software compositing.
- WebKit::WebGraphicsContext3D* context3d = outputSurface->context3D();
+ WebKit::WebGraphicsContext3D* context3d = context->context3D();
if (context3d)
context3d->deleteTexture(m_ioSurfaceTextureId);
}
@@ -91,7 +91,7 @@
LayerImpl::dumpLayerProperties(str, indent);
}
-void IOSurfaceLayerImpl::didLoseOutputSurface()
+void IOSurfaceLayerImpl::didLoseContext()
{
// We don't have a valid texture ID in the new context; however,
// the IOSurface is still valid.
« no previous file with comments | « cc/io_surface_layer_impl.h ('k') | cc/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698