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

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

Issue 9564008: Aura: PostSubBuffer implementation for --ui-use-gpu-process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 8 years, 9 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 "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 gpu::gles2::TextureManager::TextureInfo* GetParentInfo(uint32 client_id); 75 gpu::gles2::TextureManager::TextureInfo* GetParentInfo(uint32 client_id);
76 int back() const { return 1 - front_; } 76 int back() const { return 1 - front_; }
77 77
78 // The framebuffer that represents this surface (service id). Allocated lazily 78 // The framebuffer that represents this surface (service id). Allocated lazily
79 // in OnMakeCurrent. 79 // in OnMakeCurrent.
80 uint32 fbo_id_; 80 uint32 fbo_id_;
81 81
82 // The front and back buffers. 82 // The front and back buffers.
83 Texture textures_[2]; 83 Texture textures_[2];
84 84
85 gfx::Rect previous_damage_rect_;
86
85 // Indicates which of the 2 above is the front buffer. 87 // Indicates which of the 2 above is the front buffer.
86 int front_; 88 int front_;
87 89
88 // Whether or not the command buffer stub has been destroyed. 90 // Whether or not the command buffer stub has been destroyed.
89 bool stub_destroyed_; 91 bool stub_destroyed_;
90 92
91 scoped_ptr<ImageTransportHelper> helper_; 93 scoped_ptr<ImageTransportHelper> helper_;
92 base::WeakPtr<GpuCommandBufferStub> parent_stub_; 94 base::WeakPtr<GpuCommandBufferStub> parent_stub_;
93 95
94 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 96 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
95 }; 97 };
96 98
97 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 99 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698