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

Side by Side Diff: content/common/gpu/texture_image_transport_surface.h

Issue 10663003: Merge the IPCs used for GPU process synchronization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
(...skipping 28 matching lines...) Expand all
39 virtual void SetBackbufferAllocation(bool allocated) OVERRIDE; 39 virtual void SetBackbufferAllocation(bool allocated) OVERRIDE;
40 virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE; 40 virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE;
41 virtual void* GetShareHandle() OVERRIDE; 41 virtual void* GetShareHandle() OVERRIDE;
42 virtual void* GetDisplay() OVERRIDE; 42 virtual void* GetDisplay() OVERRIDE;
43 virtual void* GetConfig() OVERRIDE; 43 virtual void* GetConfig() OVERRIDE;
44 44
45 protected: 45 protected:
46 // ImageTransportSurface implementation. 46 // ImageTransportSurface implementation.
47 virtual void OnNewSurfaceACK( 47 virtual void OnNewSurfaceACK(
48 uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE; 48 uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE;
49 virtual void OnBuffersSwappedACK() OVERRIDE; 49 virtual void OnBufferPresented() OVERRIDE;
50 virtual void OnPostSubBufferACK() OVERRIDE;
51 virtual void OnResizeViewACK() OVERRIDE; 50 virtual void OnResizeViewACK() OVERRIDE;
52 virtual void OnResize(gfx::Size size) OVERRIDE; 51 virtual void OnResize(gfx::Size size) OVERRIDE;
53 52
54 // GpuCommandBufferStub::DestructionObserver implementation. 53 // GpuCommandBufferStub::DestructionObserver implementation.
55 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE; 54 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE;
56 55
57 private: 56 private:
58 // A texture backing the front/back buffer in the parent stub. 57 // A texture backing the front/back buffer in the parent stub.
59 struct Texture { 58 struct Texture {
60 Texture(); 59 Texture();
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 bool frontbuffer_suggested_allocation_; 98 bool frontbuffer_suggested_allocation_;
100 99
101 scoped_ptr<ImageTransportHelper> helper_; 100 scoped_ptr<ImageTransportHelper> helper_;
102 gfx::GLSurfaceHandle handle_; 101 gfx::GLSurfaceHandle handle_;
103 GpuCommandBufferStub* parent_stub_; 102 GpuCommandBufferStub* parent_stub_;
104 103
105 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 104 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
106 }; 105 };
107 106
108 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 107 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_win.cc ('k') | content/common/gpu/texture_image_transport_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698