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

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

Issue 11293194: ui: Prefer +/- operators to apply offsets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: floats Created 8 years, 1 month 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_IMAGE_TRANSPORT_SURFACE_H_ 5 #ifndef CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 6 #define CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
7 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const gfx::Rect& new_damage_rect, 81 const gfx::Rect& new_damage_rect,
82 std::vector<gfx::Rect>* regions); 82 std::vector<gfx::Rect>* regions);
83 83
84 protected: 84 protected:
85 virtual ~ImageTransportSurface(); 85 virtual ~ImageTransportSurface();
86 86
87 private: 87 private:
88 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface); 88 DISALLOW_COPY_AND_ASSIGN(ImageTransportSurface);
89 }; 89 };
90 90
91 class ImageTransportHelper : public IPC::Listener { 91 class ImageTransportHelper
92 : public IPC::Listener,
93 public base::SupportsWeakPtr<ImageTransportHelper> {
92 public: 94 public:
93 // Takes weak pointers to objects that outlive the helper. 95 // Takes weak pointers to objects that outlive the helper.
94 ImageTransportHelper(ImageTransportSurface* surface, 96 ImageTransportHelper(ImageTransportSurface* surface,
95 GpuChannelManager* manager, 97 GpuChannelManager* manager,
96 GpuCommandBufferStub* stub, 98 GpuCommandBufferStub* stub,
97 gfx::PluginWindowHandle handle); 99 gfx::PluginWindowHandle handle);
98 virtual ~ImageTransportHelper(); 100 virtual ~ImageTransportHelper();
99 101
100 bool Initialize(); 102 bool Initialize();
101 void Destroy(); 103 void Destroy();
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 bool did_set_swap_interval_; 201 bool did_set_swap_interval_;
200 202
201 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface); 203 DISALLOW_COPY_AND_ASSIGN(PassThroughImageTransportSurface);
202 }; 204 };
203 205
204 } // namespace content 206 } // namespace content
205 207
206 #endif // defined(ENABLE_GPU) 208 #endif // defined(ENABLE_GPU)
207 209
208 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_ 210 #endif // CONTENT_COMMON_GPU_IMAGE_TRANSPORT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698