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

Unified Diff: cc/resources/texture_mailbox_deleter.cc

Issue 105103004: Convert cc resource system over to GLES2Interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/resources/resource_update_controller_unittest.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_mailbox_deleter.cc
diff --git a/cc/resources/texture_mailbox_deleter.cc b/cc/resources/texture_mailbox_deleter.cc
index ae6df17691d5fb97c56bfddb4bc25aa480394ffe..cf7b3b6107f86068813f6a711a473f03bdc14490 100644
--- a/cc/resources/texture_mailbox_deleter.cc
+++ b/cc/resources/texture_mailbox_deleter.cc
@@ -10,7 +10,7 @@
#include "base/message_loop/message_loop_proxy.h"
#include "cc/output/context_provider.h"
#include "cc/resources/single_release_callback.h"
-#include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
+#include "gpu/command_buffer/client/gles2_interface.h"
namespace cc {
@@ -20,8 +20,8 @@ static void DeleteTextureOnImplThread(
unsigned sync_point,
bool is_lost) {
if (sync_point)
- context_provider->Context3d()->waitSyncPoint(sync_point);
- context_provider->Context3d()->deleteTexture(texture_id);
+ context_provider->ContextGL()->WaitSyncPointCHROMIUM(sync_point);
+ context_provider->ContextGL()->DeleteTextures(1, &texture_id);
}
static void PostTaskFromMainToImplThread(
« no previous file with comments | « cc/resources/resource_update_controller_unittest.cc ('k') | cc/resources/video_resource_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698