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

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

Issue 10696221: Aura: Less image transport IPCs and less code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 5 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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "content/common/gpu/gpu_command_buffer_stub.h" 10 #include "content/common/gpu/gpu_command_buffer_stub.h"
(...skipping 27 matching lines...) Expand all
38 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE; 38 virtual bool PostSubBuffer(int x, int y, int width, int height) OVERRIDE;
39 virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE; 39 virtual bool OnMakeCurrent(gfx::GLContext* context) OVERRIDE;
40 virtual void SetBackbufferAllocation(bool allocated) OVERRIDE; 40 virtual void SetBackbufferAllocation(bool allocated) OVERRIDE;
41 virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE; 41 virtual void SetFrontbufferAllocation(bool allocated) OVERRIDE;
42 virtual void* GetShareHandle() OVERRIDE; 42 virtual void* GetShareHandle() OVERRIDE;
43 virtual void* GetDisplay() OVERRIDE; 43 virtual void* GetDisplay() OVERRIDE;
44 virtual void* GetConfig() OVERRIDE; 44 virtual void* GetConfig() OVERRIDE;
45 45
46 protected: 46 protected:
47 // ImageTransportSurface implementation. 47 // ImageTransportSurface implementation.
48 virtual void OnNewSurfaceACK(
49 uint64 surface_handle, TransportDIB::Handle shm_handle) OVERRIDE;
50 virtual void OnBufferPresented( 48 virtual void OnBufferPresented(
51 uint32 sync_point) OVERRIDE; 49 uint32 sync_point) OVERRIDE;
52 virtual void OnResizeViewACK() OVERRIDE; 50 virtual void OnResizeViewACK() OVERRIDE;
53 virtual void OnResize(gfx::Size size) OVERRIDE; 51 virtual void OnResize(gfx::Size size) OVERRIDE;
54 52
55 // GpuCommandBufferStub::DestructionObserver implementation. 53 // GpuCommandBufferStub::DestructionObserver implementation.
56 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE; 54 virtual void OnWillDestroyStub(GpuCommandBufferStub* stub) OVERRIDE;
57 55
58 private: 56 private:
59 // A texture backing the front/back buffer in the parent stub. 57 // A texture backing the front/back buffer in the parent stub.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 bool frontbuffer_suggested_allocation_; 99 bool frontbuffer_suggested_allocation_;
102 100
103 scoped_ptr<ImageTransportHelper> helper_; 101 scoped_ptr<ImageTransportHelper> helper_;
104 gfx::GLSurfaceHandle handle_; 102 gfx::GLSurfaceHandle handle_;
105 GpuCommandBufferStub* parent_stub_; 103 GpuCommandBufferStub* parent_stub_;
106 104
107 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 105 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
108 }; 106 };
109 107
110 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 108 #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