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

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

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 virtual void OnResize(gfx::Size size, float scale_factor) OVERRIDE; 54 virtual void OnResize(gfx::Size size, float scale_factor) OVERRIDE;
55 virtual void SetLatencyInfo( 55 virtual void SetLatencyInfo(
56 const ui::LatencyInfo& latency_info) OVERRIDE; 56 const ui::LatencyInfo& latency_info) OVERRIDE;
57 57
58 // GpuCommandBufferStub::DestructionObserver implementation. 58 // GpuCommandBufferStub::DestructionObserver implementation.
59 virtual void OnWillDestroyStub() OVERRIDE; 59 virtual void OnWillDestroyStub() OVERRIDE;
60 60
61 private: 61 private:
62 62
63 gfx::Size backbuffer_size() const { 63 gfx::Size backbuffer_size() const {
64 DCHECK(backbuffer_); 64 DCHECK(backbuffer_.get());
65 GLsizei width = 0; 65 GLsizei width = 0;
66 GLsizei height = 0; 66 GLsizei height = 0;
67 backbuffer_->texture()->GetLevelSize(GL_TEXTURE_2D, 0, &width, &height); 67 backbuffer_->texture()->GetLevelSize(GL_TEXTURE_2D, 0, &width, &height);
68 return gfx::Size(width, height); 68 return gfx::Size(width, height);
69 } 69 }
70 70
71 virtual ~TextureImageTransportSurface(); 71 virtual ~TextureImageTransportSurface();
72 void CreateBackTexture(); 72 void CreateBackTexture();
73 void AttachBackTextureToFBO(); 73 void AttachBackTextureToFBO();
74 void ReleaseBackTexture(); 74 void ReleaseBackTexture();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Holds a reference to the mailbox manager for cleanup. 115 // Holds a reference to the mailbox manager for cleanup.
116 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_; 116 scoped_refptr<gpu::gles2::MailboxManager> mailbox_manager_;
117 117
118 ui::LatencyInfo latency_info_; 118 ui::LatencyInfo latency_info_;
119 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface); 119 DISALLOW_COPY_AND_ASSIGN(TextureImageTransportSurface);
120 }; 120 };
121 121
122 } // namespace content 122 } // namespace content
123 123
124 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_ 124 #endif // CONTENT_COMMON_GPU_TEXTURE_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_linux.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