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

Unified Diff: content/browser/android/graphics_context.cc

Issue 10828356: Very basic Android browser-side compositing support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments, make compositor non-singleton Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/android/graphics_context.cc
diff --git a/content/browser/android/graphics_context.cc b/content/browser/android/graphics_context.cc
index 29b7ad6f16933ab171b5c6aae918dc12971e3760..abe3fc462592ccdae19dac53e9bd5ebbdc867e44 100644
--- a/content/browser/android/graphics_context.cc
+++ b/content/browser/android/graphics_context.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/public/browser/android/graphics_context.h"
+#include "content/browser/android/graphics_context.h"
#include "base/memory/scoped_ptr.h"
#include "content/browser/android/draw_delegate_impl.h"
@@ -45,13 +45,14 @@ class CmdBufferGraphicsContext : public content::GraphicsContext {
ANativeWindow_release(window_);
}
- virtual WebKit::WebGraphicsContext3D* GetContext3D() {
- return context_.get();
- }
- virtual uint32 InsertSyncPoint() {
+ virtual uint32 InsertSyncPoint() OVERRIDE {
return context_->insertSyncPoint();
}
+ virtual int GetSurfaceID() OVERRIDE {
+ return surface_id_;
+ }
+
private:
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context_;
int surface_id_;
@@ -83,7 +84,7 @@ GraphicsContext* GraphicsContext::CreateForUI(
base::WeakPtr<WebGraphicsContext3DSwapBuffersClient> swap_client;
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context(
new WebGraphicsContext3DCommandBufferImpl(
- surface_id,
+ 0,
url,
factory,
swap_client));

Powered by Google App Engine
This is Rietveld 408576698