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

Side by Side Diff: chrome/gpu/gpu_backing_store_glx.h

Issue 3834003: On Windows, create a new TransportDIB::Handle struct which includes the file (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 years, 2 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_GPU_GPU_BACKING_STORE_GLX_H_ 5 #ifndef CHROME_GPU_GPU_BACKING_STORE_GLX_H_
6 #define CHROME_GPU_GPU_BACKING_STORE_GLX_H_ 6 #define CHROME_GPU_GPU_BACKING_STORE_GLX_H_
7 #pragma once 7 #pragma once
8 8
9 #include "app/surface/transport_dib.h" 9 #include "app/surface/transport_dib.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 18 matching lines...) Expand all
29 const gfx::Size& texture_size() const { return texture_size_; } 29 const gfx::Size& texture_size() const { return texture_size_; }
30 unsigned int texture_id() const { return texture_id_; } 30 unsigned int texture_id() const { return texture_id_; }
31 31
32 // IPC::Channel::Listener implementation. 32 // IPC::Channel::Listener implementation.
33 virtual void OnMessageReceived(const IPC::Message& message); 33 virtual void OnMessageReceived(const IPC::Message& message);
34 virtual void OnChannelConnected(int32 peer_pid); 34 virtual void OnChannelConnected(int32 peer_pid);
35 virtual void OnChannelError(); 35 virtual void OnChannelError();
36 36
37 private: 37 private:
38 // Message handlers. 38 // Message handlers.
39 void OnPaintToBackingStore(base::ProcessId source_process_id, 39 void OnPaintToBackingStore(TransportDIB::Handle dib_handle,
40 TransportDIB::Id id,
41 const gfx::Rect& bitmap_rect, 40 const gfx::Rect& bitmap_rect,
42 const std::vector<gfx::Rect>& copy_rects); 41 const std::vector<gfx::Rect>& copy_rects);
43 void OnScrollBackingStore(int dx, int dy, 42 void OnScrollBackingStore(int dx, int dy,
44 const gfx::Rect& clip_rect, 43 const gfx::Rect& clip_rect,
45 const gfx::Size& view_size); 44 const gfx::Size& view_size);
46 45
47 void PaintOneRectToBackingStore(const SkBitmap& transport_bitmap, 46 void PaintOneRectToBackingStore(const SkBitmap& transport_bitmap,
48 const gfx::Rect& bitmap_rect, 47 const gfx::Rect& bitmap_rect,
49 const gfx::Rect& copy_rect); 48 const gfx::Rect& copy_rect);
50 49
51 GpuViewX* view_; 50 GpuViewX* view_;
52 GpuThread* gpu_thread_; 51 GpuThread* gpu_thread_;
53 int32 routing_id_; 52 int32 routing_id_;
54 gfx::Size size_; 53 gfx::Size size_;
55 54
56 unsigned int texture_id_; // 0 when uninitialized. 55 unsigned int texture_id_; // 0 when uninitialized.
57 56
58 // The size of the texture loaded into GL. This is 0x0 when there is no 57 // The size of the texture loaded into GL. This is 0x0 when there is no
59 // texture loaded. This may be different than the size of the backing store 58 // texture loaded. This may be different than the size of the backing store
60 // because we could have been resized without yet getting the updated 59 // because we could have been resized without yet getting the updated
61 // bitmap. 60 // bitmap.
62 gfx::Size texture_size_; 61 gfx::Size texture_size_;
63 62
64 DISALLOW_COPY_AND_ASSIGN(GpuBackingStoreGLX); 63 DISALLOW_COPY_AND_ASSIGN(GpuBackingStoreGLX);
65 }; 64 };
66 65
67 #endif // CHROME_GPU_GPU_BACKING_STORE_GLX_H_ 66 #endif // CHROME_GPU_GPU_BACKING_STORE_GLX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698