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

Side by Side Diff: gpu/command_buffer/service/texture_definition.cc

Issue 2109803003: Add support for EXT_image_flush_external extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add support for EXT_image_flush_external extension Created 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "gpu/command_buffer/service/texture_definition.h" 5 #include "gpu/command_buffer/service/texture_definition.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <list> 9 #include <list>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 void ReleaseTexImage(unsigned target) override; 43 void ReleaseTexImage(unsigned target) override;
44 bool CopyTexImage(unsigned target) override; 44 bool CopyTexImage(unsigned target) override;
45 bool CopyTexSubImage(unsigned target, 45 bool CopyTexSubImage(unsigned target,
46 const gfx::Point& offset, 46 const gfx::Point& offset,
47 const gfx::Rect& rect) override; 47 const gfx::Rect& rect) override;
48 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 48 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
49 int z_order, 49 int z_order,
50 gfx::OverlayTransform transform, 50 gfx::OverlayTransform transform,
51 const gfx::Rect& bounds_rect, 51 const gfx::Rect& bounds_rect,
52 const gfx::RectF& crop_rect) override; 52 const gfx::RectF& crop_rect) override;
53 void Flush() override {}
53 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 54 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
54 uint64_t process_tracing_id, 55 uint64_t process_tracing_id,
55 const std::string& dump_name) override; 56 const std::string& dump_name) override;
56 57
57 protected: 58 protected:
58 ~GLImageSync() override; 59 ~GLImageSync() override;
59 60
60 private: 61 private:
61 scoped_refptr<NativeImageBuffer> buffer_; 62 scoped_refptr<NativeImageBuffer> buffer_;
62 gfx::Size size_; 63 gfx::Size size_;
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 return true; 466 return true;
466 } 467 }
467 468
468 bool TextureDefinition::SafeToRenderFrom() const { 469 bool TextureDefinition::SafeToRenderFrom() const {
469 return level_info_.cleared_rect.Contains( 470 return level_info_.cleared_rect.Contains(
470 gfx::Rect(level_info_.width, level_info_.height)); 471 gfx::Rect(level_info_.width, level_info_.height));
471 } 472 }
472 473
473 } // namespace gles2 474 } // namespace gles2
474 } // namespace gpu 475 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698