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

Unified Diff: content/common/gpu/null_transport_surface.h

Issue 615503004: Remove TextureImageTransportSurface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: NOTREACHED -> NOTIMPLEMENTED Created 6 years, 3 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
« no previous file with comments | « content/common/gpu/image_transport_surface_mac.mm ('k') | content/common/gpu/null_transport_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/null_transport_surface.h
diff --git a/content/common/gpu/null_transport_surface.h b/content/common/gpu/null_transport_surface.h
new file mode 100644
index 0000000000000000000000000000000000000000..158283c1eb2138553c3f9ba935b8ac708110c86e
--- /dev/null
+++ b/content/common/gpu/null_transport_surface.h
@@ -0,0 +1,42 @@
+// Copyright (c) 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_
+#define CONTENT_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_
+
+#include "base/basictypes.h"
+#include "content/common/gpu/image_transport_surface.h"
+#include "ui/gfx/native_widget_types.h"
+
+namespace content {
+
+// Used when the GPU process is not involved in frame transport, but frame
+// resources are exchanged between client and target directly (such as in
+// delegated rendering).
+class NullTransportSurface : public PassThroughImageTransportSurface {
+ public:
+ NullTransportSurface(GpuChannelManager* manager,
+ GpuCommandBufferStub* stub,
+ const gfx::GLSurfaceHandle& handle);
+
+ // gfx::GLSurface implementation.
+ virtual bool Initialize() OVERRIDE;
+ virtual void Destroy() OVERRIDE;
+ virtual bool SwapBuffers() OVERRIDE;
+ virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
+
+ protected:
+ virtual ~NullTransportSurface();
+
+ virtual void SendVSyncUpdateIfAvailable() OVERRIDE;
+
+ private:
+ uint32 parent_client_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(NullTransportSurface);
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_GPU_NULL_TRANSPORT_SURFACE_H_
« no previous file with comments | « content/common/gpu/image_transport_surface_mac.mm ('k') | content/common/gpu/null_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698